Some of our CI jobs use project-specific GitLab runners (e.g. requiring
the `dind` tag). The jobs then fail when someone forks the repository
and opens a merge request. This commit confines those jobs to the
`knot/knot-resolver` repository.
- deploy
- pkgtest
-
# https://docs.gitlab.com/ce/ci/jobs/job_control.html#select-different-runner-tags-for-each-parallel-matrix-job
.multi_platform: &multi_platform
parallel:
build:macOS:
<<: *nodep
- except:
+ only:
refs:
- - branches@knot/security/knot-resolver
+ - branches@knot/knot-resolver
stage: build
when: delayed
start_in: 3 minutes # allow some time for mirroring, job creation
stage: build
image: docker:latest
<<: *multi_platform
+ only:
+ refs:
+ - branches@knot/knot-resolver
tags:
- ${PLATFORM}
- dind
pytests:
# these are executed on LXC runners to increase stability
image: $CI_REGISTRY/knot/knot-resolver/ci/lxc-debian-11:knot-$KNOT_VERSION
+ only:
+ refs:
+ - branches@knot/knot-resolver
needs: []
tags:
- lxc