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.
This commit is contained in:
puzzlewolf 2022-10-24 13:30:40 +02:00
parent e09fc63d56
commit 28b0956916

View file

@ -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: