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