mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-12 10:59:49 +03:00
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
|
||||
- .gitlab-ci.yml
|
||||
- "pmb/**/*.py"
|
||||
- if: $CI_COMMIT_BRANCH == 'master'
|
||||
changes:
|
||||
- .ci/docs.sh
|
||||
- .gitlab-ci.yml
|
||||
- "pmb/**/*.py"
|
||||
script:
|
||||
- ".ci/docs.sh"
|
||||
artifacts:
|
||||
|
@ -151,8 +156,12 @@ docs:
|
|||
- public
|
||||
|
||||
deploy:
|
||||
only:
|
||||
- master
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == 'master'
|
||||
changes:
|
||||
- .ci/docs.sh
|
||||
- .gitlab-ci.yml
|
||||
- "pmb/**/*.py"
|
||||
stage: deploy
|
||||
before_script:
|
||||
- apk -q add openssh-client rsync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue