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:
Oliver Smith 2025-07-06 20:27:31 +02:00
parent b21c545956
commit 459d5a6ac4
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -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