Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix CI after rusty-cachier introduction (#11556)
Browse files Browse the repository at this point in the history
* Fix CI after `rusty-cachier` introduction

* Replace anchor with `extends`
  • Loading branch information
rcny committed May 31, 2022
1 parent 48d1626 commit 108be5c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 108be5c

Please sign in to comment.