diff options
author | Jordan Petridis <jordan@centricular.com> | 2022-09-14 15:19:21 +0300 |
---|---|---|
committer | Jordan Petridis <jordan@centricular.com> | 2022-09-14 15:30:35 +0300 |
commit | 3f5020ec837a48390426c369dc07f2062f1e9e4f (patch) | |
tree | a853c7396302df31651a5b5a4a8793a873e9fb9a /.gitlab-ci.yml | |
parent | 45962eca1cfdd1d6d8e39edd449c2ae778898333 (diff) |
ci: have build jobs depend on either build-* or update-* jobs
followup to 23c07d3c
When we trigger an update pipeline, instead of build-jobs we
replace them update-* jobs. In order for gitlab to not complain
add both of the jobs in the needs array, but mark them as optional
so either of them can be used depending on the usecase.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57720f211..c828c63eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -128,19 +128,31 @@ update-nightly: extends: - .dist-debian-container - .debian:11-stable - needs: ['build-stable'] + needs: + - job: 'build-stable' + optional: true + - job: 'update-stable' + optional: true .img-msrv: extends: - .dist-debian-container - .debian:11-msrv - needs: ['build-msrv'] + needs: + - job: 'build-msrv' + optional: true + - job: 'update-msrv' + optional: true .img-nightly: extends: - .dist-debian-container - .debian:11-nightly - needs: ['build-nightly'] + needs: + - job: 'build-nightly' + optional: true + - job: 'update-nightly' + optional: true .cargo test: stage: "test" |