Skip to content
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