forked from Mirror/pmbootstrap
ci: limit running of qemu tests
This uses a variable configured in the gitlab project [settings->CI/CD->Variables] to restrict when the qemu job will run. This should prevent the job from running on repo forks where an appropriate runner has not been configured/registered. Note that if this variable is set in a repo where there is no runner registered to run qemu, then any CI jobs in that repo will ultimately fail the qemu tests since no runner will be found.
This commit is contained in:
parent
ea934c7c56
commit
c8e0ff3228
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,12 @@ pmbootstrap-tests:
|
|||
|
||||
pmbootstrap-qemu-tests:
|
||||
stage: tests
|
||||
only:
|
||||
variables:
|
||||
# This is configured in the gitlab project. Make sure there is a runner
|
||||
# added to the project that is capable of running these tests before
|
||||
# setting this variable in the project!
|
||||
- $CI_RUN_QEMU
|
||||
tags:
|
||||
# This requires a specific runner, shared runners generally don't work.
|
||||
- qemu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue