From 5142e32f44394776f264910a3f59839972fe00e3 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Wed, 9 Jun 2021 20:19:18 +0200 Subject: ci: Disable arm64 jobs for forks. --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58fe8b3f..477bb7c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,6 +41,10 @@ build-bullseye:arm64: image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-prebuild-arm64:latest dependencies: - codespell + only: + variables: + # Forks of this project most likely do not have an arm64 runner + - $CI_PROJECT_NAMESPACE == "sequoia-pgp" script: - $MAKE_TOP - if ! git diff --quiet Cargo.lock ; then echo "Cargo.lock changed. Please add the change to the corresponding commit." ; false ; fi @@ -79,6 +83,9 @@ bullseye:arm64: - tags - web - scheduled + variables: + # Forks of this project most likely do not have an arm64 runner + - $CI_PROJECT_NAMESPACE == "sequoia-pgp" stage: build image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-prebuild-arm64:latest dependencies: @@ -149,6 +156,9 @@ all_commits:arm64: - tags - web - scheduled + variables: + # Forks of this project most likely do not have an arm64 runner + - $CI_PROJECT_NAMESPACE == "sequoia-pgp" except: # Do not run for pushes to the pep-engine branch. - /^pep-engine$/ @@ -196,6 +206,10 @@ rust-stable:arm64: - docker-arm64 stage: build image: registry.gitlab.com/sequoia-pgp/build-docker-image/rust-stable-prebuild-arm64:latest + only: + variables: + # Forks of this project most likely do not have an arm64 runner + - $CI_PROJECT_NAMESPACE == "sequoia-pgp" before_script: - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR | wc --lines; du -sh $CARGO_TARGET_DIR; fi - if [ -d $CARGO_HOME ]; then find $CARGO_HOME | wc --lines; du -sh $CARGO_HOME; fi -- cgit v1.2.3