mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
ci: Only build custom images that need to be rebuilt
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
ccd8e00291
commit
684f0ce8ef
10 changed files with 125 additions and 62 deletions
|
|
@ -5,7 +5,13 @@ include:
|
|||
workflow:
|
||||
rules:
|
||||
- if: $CI_MERGE_REQUEST_IID
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_SERVER_HOST == "gitlab.com"'
|
||||
variables:
|
||||
PUSH_CUSTOM_IMAGE: "true"
|
||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && ($CI_SERVER_HOST == "ops.gitlab.net" || $CI_SERVER_HOST == "dev.gitlab.org")'
|
||||
variables:
|
||||
PUSH_CUSTOM_IMAGE: "true"
|
||||
BASE_BUILD_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE
|
||||
|
||||
default:
|
||||
interruptible: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue