Skip to content

Commit

Permalink
[ci] change runners (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Jan 31, 2023
1 parent 31078e5 commit c8dc187
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ stages:
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "100"
CARGO_TARGET_DIR: "/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
CARGO_INCREMENTAL: 0
CI_IMAGE: "paritytech/parity-scale-codec:production"

workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH
default:
cache: {}
interruptible: true
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure

.docker-env: &docker-env
image: $CI_IMAGE
Expand All @@ -25,7 +29,6 @@ workflow:
- rustc -vV
- rustup show
- bash --version

rules:
- if: $CI_PIPELINE_SOURCE == "trigger"
- if: $CI_PIPELINE_SOURCE == "web"
Expand All @@ -34,15 +37,8 @@ workflow:
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
interruptible: true
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
tags:
- linux-docker
- linux-docker-vm-c2

#### stage: check

Expand Down

0 comments on commit c8dc187

Please sign in to comment.