@@ -6,6 +6,8 @@ stages: default: image: docker:cli + services: + - docker:dind before_script: - echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" $CI_REGISTRY --password-stdin @@ -16,8 +18,6 @@ build: - touch .env && export ENV=.env - docker compose -f stack.yml build - docker compose -f stack.yml push - services: - - docker:dind only: - main - staging @@ -29,8 +29,6 @@ deploy_staging: DOCKER_HOST: tcp://$STAGING_CLUSTER_HOST:2376 DOCKER_TLS_VERIFY: 1 DOCKER_CERT_PATH: "/certs" - services: - - docker:dind environment: name: staging deployment_tier: staging @@ -54,8 +52,6 @@ deploy_production: DOCKER_HOST: tcp://$PRODUCTION_CLUSTER_HOST:2376 DOCKER_TLS_VERIFY: 1 DOCKER_CERT_PATH: "/certs" - services: - - docker:dind environment: name: production url: https://backend.air.fail @@ -1,14 +1,11 @@ -# implement caching +# implement caching (warning: this feature needs to setup only own runners with enabled containerd-snapshotters feature) # implement docker compose generic structures for inheritance of stack and compose files + services: app: image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA build: context: . - cache_from: - - type=registry,ref=$CI_REGISTRY_IMAGE/cache-image - cache_to: - - type=registry,ref=$CI_REGISTRY_IMAGE/cache-image,mode=max dockerfile: Dockerfile volumes: - static:/code/static