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:
parent
bcce8876e2
commit
9efe25b91c
1 changed files with 15 additions and 21 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue