Skip to content

Commit ddbe5cd

Browse files
authored
[ci] change runners (#1833)
1 parent 45a68ad commit ddbe5cd

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@ stages:
55
- build
66
- publish
77

8-
workflow:
9-
rules:
10-
- if: $CI_COMMIT_TAG
11-
- if: $CI_COMMIT_BRANCH
12-
13-
variables: &default-vars
8+
variables:
149
GIT_STRATEGY: fetch
1510
GIT_DEPTH: 100
1611
CARGO_INCREMENTAL: 0
1712
ARCH: "x86_64"
1813
CI_IMAGE: "paritytech/bridges-ci:production"
14+
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.27"
1915
RUST_BACKTRACE: full
2016

2117
default:
2218
cache: {}
19+
interruptible: true
20+
retry:
21+
max: 2
22+
when:
23+
- runner_system_failure
24+
- unknown_failure
25+
- api_failure
2326

2427
.collect-artifacts: &collect-artifacts
2528
artifacts:
@@ -32,7 +35,6 @@ default:
3235
.kubernetes-build: &kubernetes-build
3336
tags:
3437
- kubernetes-parity-build
35-
interruptible: true
3638

3739
.docker-env: &docker-env
3840
image: "${CI_IMAGE}"
@@ -41,16 +43,8 @@ default:
4143
- cargo --version
4244
- rustup +nightly show
4345
- cargo +nightly --version
44-
- sccache -s
45-
retry:
46-
max: 2
47-
when:
48-
- runner_system_failure
49-
- unknown_failure
50-
- api_failure
51-
interruptible: true
5246
tags:
53-
- linux-docker
47+
- linux-docker-vm-c2
5448

5549
.test-refs: &test-refs
5650
rules:
@@ -237,7 +231,7 @@ build-nightly:
237231

238232
.build-push-image: &build-push-image
239233
<<: *kubernetes-build
240-
image: quay.io/buildah/stable:v1.27
234+
image: $BUILDAH_IMAGE
241235
<<: *build-refs
242236
variables: &image-variables
243237
GIT_STRATEGY: none
@@ -248,7 +242,7 @@ build-nightly:
248242
needs:
249243
- job: build
250244
artifacts: true
251-
before_script: &check-versions
245+
before_script:
252246
- echo "Starting docker image build/push with name '${IMAGE_NAME}' for '${BRIDGES_PROJECT}' with Dockerfile = '${DOCKERFILE}'"
253247
- if [[ "${CI_COMMIT_TAG}" ]]; then
254248
VERSION=${CI_COMMIT_TAG};

0 commit comments

Comments
 (0)