gitlab-ci: fix (again!) the gitlab-ci.

Argh! So it turns out that .publish_nightly template uses already an
only: key so we cannot use rules: (on the other hand I guess using only:
ourselves is alright and concatenate ours and the one in the template).

Fixes:
> jobs:flatpak-nightly config key may not be used with `rules`: only
This commit is contained in:
Jehan 2021-05-26 19:58:52 +02:00
parent e6d3e898d8
commit f2c73f2840
1 changed files with 6 additions and 3 deletions

View File

@ -810,9 +810,12 @@ win32-nightly:
flatpak-nightly:
extends: '.publish_nightly'
stage: distribution
rules:
# Custom builds though web GUI, API or schedules.
- if: '$GIMP_CI_FLATPAK != null'
only:
variables:
# Custom builds though web GUI, API or schedules.
# I don't use 'rules:' because .publish_nightly template uses an
# 'only:' already which clashes with 'rules:'.
- $GIMP_CI_FLATPAK != null
needs: ["flatpak"]
dependencies:
- 'flatpak'