mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-26 00:24:55 +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:
|
build:docker-releases:
|
||||||
stage: dockerify
|
stage: dockerify
|
||||||
|
needs: ["stable:build"]
|
||||||
image:
|
image:
|
||||||
name: gcr.io/kaniko-project/executor:v1.6.0-debug
|
name: gcr.io/kaniko-project/executor:v1.6.0-debug
|
||||||
entrypoint: [""]
|
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
|
- /kaniko/executor --force --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG =~ "release/.*"
|
- if: $CI_COMMIT_TAG =~ "release/.*"
|
||||||
|
when: never
|
||||||
|
|
||||||
build:docker-development:
|
build:docker-development:
|
||||||
stage: dockerify
|
stage: dockerify
|
||||||
|
needs: ["stable:build"]
|
||||||
image:
|
image:
|
||||||
name: gcr.io/kaniko-project/executor:v1.6.0-debug
|
name: gcr.io/kaniko-project/executor:v1.6.0-debug
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
|
Loading…
Reference in New Issue
Block a user