Skip to content

Commit c8dc187

Browse files
authored
[ci] change runners (#406)
1 parent 31078e5 commit c8dc187

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ stages:
99
variables:
1010
GIT_STRATEGY: fetch
1111
GIT_DEPTH: "100"
12-
CARGO_TARGET_DIR: "/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
1312
CARGO_INCREMENTAL: 0
1413
CI_IMAGE: "paritytech/parity-scale-codec:production"
1514

16-
workflow:
17-
rules:
18-
- if: $CI_COMMIT_TAG
19-
- if: $CI_COMMIT_BRANCH
15+
default:
16+
cache: {}
17+
interruptible: true
18+
retry:
19+
max: 2
20+
when:
21+
- runner_system_failure
22+
- unknown_failure
23+
- api_failure
2024

2125
.docker-env: &docker-env
2226
image: $CI_IMAGE
@@ -25,7 +29,6 @@ workflow:
2529
- rustc -vV
2630
- rustup show
2731
- bash --version
28-
2932
rules:
3033
- if: $CI_PIPELINE_SOURCE == "trigger"
3134
- if: $CI_PIPELINE_SOURCE == "web"
@@ -34,15 +37,8 @@ workflow:
3437
- if: $CI_COMMIT_REF_NAME == "tags"
3538
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
3639
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
37-
interruptible: true
38-
retry:
39-
max: 2
40-
when:
41-
- runner_system_failure
42-
- unknown_failure
43-
- api_failure
4440
tags:
45-
- linux-docker
41+
- linux-docker-vm-c2
4642

4743
#### stage: check
4844

0 commit comments

Comments
 (0)