Skip to content

[ci] change runners #1833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@ stages:
- build
- publish

workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH

variables: &default-vars
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: 100
CARGO_INCREMENTAL: 0
ARCH: "x86_64"
CI_IMAGE: "paritytech/bridges-ci:production"
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.27"
RUST_BACKTRACE: full

default:
cache: {}
interruptible: true
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure

.collect-artifacts: &collect-artifacts
artifacts:
Expand All @@ -32,7 +35,6 @@ default:
.kubernetes-build: &kubernetes-build
tags:
- kubernetes-parity-build
interruptible: true

.docker-env: &docker-env
image: "${CI_IMAGE}"
Expand All @@ -41,16 +43,8 @@ default:
- cargo --version
- rustup +nightly show
- cargo +nightly --version
- sccache -s
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
interruptible: true
tags:
- linux-docker
- linux-docker-vm-c2

.test-refs: &test-refs
rules:
Expand Down Expand Up @@ -237,7 +231,7 @@ build-nightly:

.build-push-image: &build-push-image
<<: *kubernetes-build
image: quay.io/buildah/stable:v1.27
image: $BUILDAH_IMAGE
<<: *build-refs
variables: &image-variables
GIT_STRATEGY: none
Expand All @@ -248,7 +242,7 @@ build-nightly:
needs:
- job: build
artifacts: true
before_script: &check-versions
before_script:
- echo "Starting docker image build/push with name '${IMAGE_NAME}' for '${BRIDGES_PROJECT}' with Dockerfile = '${DOCKERFILE}'"
- if [[ "${CI_COMMIT_TAG}" ]]; then
VERSION=${CI_COMMIT_TAG};
Expand Down