From 4265393c30e0abe6bc4dc4a991a2d978914c227a Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Thu, 5 May 2022 19:28:40 +0200 Subject: [PATCH] Make docker containers only be built when necessary --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e19d522..0425a54 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -146,6 +146,7 @@ release_job: build:docker-releases: stage: dockerify + needs: ["stable:build"] image: name: gcr.io/kaniko-project/executor:v1.6.0-debug entrypoint: [""] @@ -157,9 +158,11 @@ build:docker-releases: - /kaniko/executor --force --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG rules: - if: $CI_COMMIT_TAG =~ "release/.*" + when: never build:docker-development: stage: dockerify + needs: ["stable:build"] image: name: gcr.io/kaniko-project/executor:v1.6.0-debug entrypoint: [""]