summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-06-09 20:19:18 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-06-10 12:47:21 +0200
commit5142e32f44394776f264910a3f59839972fe00e3 (patch)
tree6dccda85766a413c3d39205cae220969880f0ab3 /.gitlab-ci.yml
parentf44d645fe665b031a1286e70075b69f92e5bb919 (diff)
ci: Disable arm64 jobs for forks.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
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