This allows for the jobs to extend different templates while having a shared template for rules.
Docs: https://docs.gitlab.com/ee/ci/jobs/job_control.html#reuse-rules-in-different-jobs Signed-off-by: Camilla Conte <cco...@redhat.com> --- .gitlab-ci.d/opensbi.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.d/opensbi.yml b/.gitlab-ci.d/opensbi.yml index 2e9d51764e..d0221632f6 100644 --- a/.gitlab-ci.d/opensbi.yml +++ b/.gitlab-ci.d/opensbi.yml @@ -40,7 +40,8 @@ when: on_success docker-opensbi: - extends: .opensbi_job_rules + rules: + - !reference [.opensbi_job_rules, rules] stage: containers image: docker:stable services: @@ -59,7 +60,8 @@ docker-opensbi: - docker push $IMAGE_TAG build-opensbi: - extends: .opensbi_job_rules + rules: + - !reference [.opensbi_job_rules, rules] stage: build needs: ['docker-opensbi'] artifacts: -- 2.40.1