From 108be5c3f2e390a2929f3ed945f1188de77b28dc Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 31 May 2022 20:07:49 +0300 Subject: [PATCH] Fix CI after `rusty-cachier` introduction (#11556) * Fix CI after `rusty-cachier` introduction * Replace anchor with `extends` --- .gitlab-ci.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 935c5c1d40e86..e218a2c1f8d3a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -89,6 +89,16 @@ default: - rustup +nightly show - cargo +nightly --version +.docker-env: + image: "${CI_IMAGE}" + before_script: + - !reference [.rust-info-script, script] + - !reference [.rusty-cachier, before_script] + after_script: + - !reference [.rusty-cachier, after_script] + tags: + - linux-docker + # rusty-cachier's hidden job. Parts of this job are used to instrument the pipeline's other real jobs with rusty-cachier # Description of the commands is available here - https://gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client#description .rusty-cachier: @@ -100,16 +110,6 @@ default: after_script: - rusty-cachier snapshot destroy -.docker-env: - image: "${CI_IMAGE}" - before_script: - - !reference [.rust-info-script, script] - - !reference [.rusty-cachier, before_script] - after_script: - - !reference [.rusty-cachier, after_script] - tags: - - linux-docker - .test-refs: rules: - if: $CI_PIPELINE_SOURCE == "web" @@ -225,7 +225,8 @@ deploy-prometheus-alerting-rules: # This info is later used for the cache distribution and an overlay creation. rusty-cachier-notify: stage: notify - <<: *docker-env + extends: + - .docker-env script: - rusty-cachier cache notify