Skip to content

Commit 6b55226

Browse files
committed
Fix base image building and promoting conditions
1 parent 96e43db commit 6b55226

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.gitlab-ci.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ default:
2424
rules:
2525
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"
2626
changes:
27-
- .gitlab/Dockerfile-*
28-
when: manual
27+
- .gitlab/Dockerfile-* # these are direct dependencies
28+
- .gitlab-ci.yml # list of images is here so it is a dependency too
2929
allow_failure: true
3030
image: $DOCKER_REGISTRY/docker:20.10.13
3131
parallel:
@@ -54,7 +54,13 @@ build-image-arm64:
5454

5555
promote-image:
5656
stage: manual-images
57-
when: manual
57+
rules: # same as build-image
58+
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"
59+
changes:
60+
- .gitlab/Dockerfile-* # these are direct dependencies
61+
- .gitlab-ci.yml # list of images is here so it is a dependency too
62+
when: manual # this one is manual, but it means that install-dependencies may be hitting the wrong <base>:current til this is run
63+
allow_failure: true
5864
tags: ["runner:docker"]
5965
image: $DOCKER_REGISTRY/docker:20.10.13
6066
parallel:

0 commit comments

Comments
 (0)