gitlab-ci: improve NUR update trigger
Specifically, trigger NUR updates for all release branches by default. Also updates the GitLab CI definition to use the new `rules` attribute rather than the deprecated `only` attribute.
This commit is contained in:
parent
b7737f1732
commit
068ff76a10
|
@ -12,8 +12,9 @@ Run tests:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- nix-shell tests -A run.files-text
|
- nix-shell tests -A run.files-text
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: $CI_COMMIT_BRANCH == "master"
|
||||||
|
when: always
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -26,8 +27,9 @@ pages:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: $CI_COMMIT_BRANCH == "master"
|
||||||
|
when: always
|
||||||
|
|
||||||
Deploy NUR:
|
Deploy NUR:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -37,5 +39,6 @@ Deploy NUR:
|
||||||
trigger:
|
trigger:
|
||||||
project: rycee/nur-expressions
|
project: rycee/nur-expressions
|
||||||
branch: master
|
branch: master
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH =~ /^release-/
|
||||||
|
when: always
|
||||||
|
|
Loading…
Reference in a new issue