ci: Disable flatpak building for forks

Also move to use a single rules set for flatpak rather than only/except
rules.
This commit is contained in:
Benjamin Berg 2020-09-14 13:47:10 +02:00
parent bcce8876e2
commit 9efe25b91c

View file

@ -109,7 +109,7 @@ test_indent:
- git diff - git diff
- "! git status -s | grep -q ." - "! git status -s | grep -q ."
.flatpak-libfprint: flatpak:
stage: flatpak stage: flatpak
extends: .flatpak extends: .flatpak
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.36 image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.36
@ -117,26 +117,20 @@ test_indent:
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json" MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
FLATPAK_MODULE: "libfprint" FLATPAK_MODULE: "libfprint"
APP_ID: "org.freedesktop.libfprint.Demo" APP_ID: "org.freedesktop.libfprint.Demo"
rules:
flatpak-auto master: - if: '$CI_PROJECT_PATH != "libfprint/libfprint"'
extends: .flatpak-libfprint when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "master"'
when: always when: always
only: - if: '$CI_COMMIT_TAG'
- tags when: always
- master # For any other (commit), allow manual run.
except: # This excludes MRs which would create a duplicate pipeline
variables: - if: '$CI_COMMIT_BRANCH'
- $CI_PIPELINE_SOURCE == "schedule"
flatpak-manual:
extends: .flatpak-libfprint
when: manual when: manual
except: allow_failure: true
refs:
- tags
- master
variables:
- $CI_PIPELINE_SOURCE == "schedule"
# CONTAINERS creation stage # CONTAINERS creation stage
container_fedora_build: container_fedora_build: