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
when: always - if: '$CI_PIPELINE_SOURCE == "schedule"'
only: when: never
- tags - if: '$CI_COMMIT_BRANCH == "master"'
- master when: always
except: - if: '$CI_COMMIT_TAG'
variables: when: always
- $CI_PIPELINE_SOURCE == "schedule" # For any other (commit), allow manual run.
# This excludes MRs which would create a duplicate pipeline
flatpak-manual: - if: '$CI_COMMIT_BRANCH'
extends: .flatpak-libfprint when: manual
when: manual allow_failure: true
except:
refs:
- tags
- master
variables:
- $CI_PIPELINE_SOURCE == "schedule"
# CONTAINERS creation stage # CONTAINERS creation stage
container_fedora_build: container_fedora_build: