CI: fix reprepro step on main from forks

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2234>
This commit is contained in:
Simon Zeni 2024-06-05 14:07:58 -04:00 committed by Marge Bot
parent 335960d1ad
commit df5c052833
2 changed files with 4 additions and 12 deletions

View file

@ -40,12 +40,8 @@ stages:
# Extra rules for packaging
.monado.packaging.conditions:
rules:
# Only the default branch of the "upstream" repo.
- if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
when: on_success
# Otherwise, don't build packages.
- when: never
# Only the default branch of the "upstream" repo on push.
- if: $CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
###
###

View file

@ -55,12 +55,8 @@ stages:
# Extra rules for packaging
.monado.packaging.conditions:
rules:
# Only the default branch of the "upstream" repo.
- if: "$CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
when: on_success
# Otherwise, don't build packages.
- when: never
# Only the default branch of the "upstream" repo on push.
- if: $CI_PROJECT_PATH == $FDO_UPSTREAM_REPO && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
{% include 'include.win_containers.yml' %}
{% include 'include.ci-containers-variables.yml.jinja' %}