mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-25 16:17:56 +01:00
Make docker containers only be built when necessary
This commit is contained in:
parent
08d7512d01
commit
4265393c30
@ -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: [""]
|
||||
|
Loading…
Reference in New Issue
Block a user