From 28b095691606b0d0696b040f37b6b01a6d663c3b Mon Sep 17 00:00:00 2001 From: puzzlewolf Date: Mon, 24 Oct 2022 13:30:40 +0200 Subject: [PATCH] Do not run the hardware tests on forks. - Forks of this project do not have access to cookiejar's hardware keys. They do not have a gitlab CI runner that can pick up those jobs, so the pipeline eventually fails with a timeout. - Prevent hardware related jobs from being created for forked projects. --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1364f3..8b9f2c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -198,6 +198,9 @@ hardware-builddeps: - docker push $IMAGE_SHA - docker push $IMAGE_LATEST only: + variables: + # Forks of this project do not have access to cookiejar's hardware tokens + - $CI_PROJECT_NAMESPACE == "openpgp-card" changes: - card-functionality/docker/Dockerfile.hardware-builddeps - .gitlab-ci.yml @@ -209,6 +212,10 @@ hardware-builddeps: .hw-test-template: image: registry.gitlab.com/openpgp-card/openpgp-card/hardware-builddeps + only: + variables: + # Forks of this project do not have access to cookiejar's hardware tokens + - $CI_PROJECT_NAMESPACE == "openpgp-card" tags: - card parallel: