forked from Mirror/pmbootstrap
CI: fix running deploy job on master
* Run the docs job on master too if relevant files changed.
* Run the deploy job only with the same condition.
Fixes: 4dd82075
("CI: Only run most pipelines when they actually are necessary")
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2639
This commit is contained in:
parent
b21c545956
commit
459d5a6ac4
1 changed files with 11 additions and 2 deletions
|
@ -144,6 +144,11 @@ docs:
|
||||||
- .ci/docs.sh
|
- .ci/docs.sh
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- "pmb/**/*.py"
|
- "pmb/**/*.py"
|
||||||
|
- if: $CI_COMMIT_BRANCH == 'master'
|
||||||
|
changes:
|
||||||
|
- .ci/docs.sh
|
||||||
|
- .gitlab-ci.yml
|
||||||
|
- "pmb/**/*.py"
|
||||||
script:
|
script:
|
||||||
- ".ci/docs.sh"
|
- ".ci/docs.sh"
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -151,8 +156,12 @@ docs:
|
||||||
- public
|
- public
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: $CI_COMMIT_BRANCH == 'master'
|
||||||
|
changes:
|
||||||
|
- .ci/docs.sh
|
||||||
|
- .gitlab-ci.yml
|
||||||
|
- "pmb/**/*.py"
|
||||||
stage: deploy
|
stage: deploy
|
||||||
before_script:
|
before_script:
|
||||||
- apk -q add openssh-client rsync
|
- apk -q add openssh-client rsync
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue