gitlab-ci: try rules:changes: to limit "fdroiddata fdroid build" runs

https://docs.gitlab.com/ee/ci/yaml/#using-onlychanges-with-pipelines-for-merge-requests
This commit is contained in:
Hans-Christoph Steiner 2020-11-10 16:53:00 +01:00
parent 767573f2ec
commit a1df5ef86a
1 changed files with 7 additions and 3 deletions

View File

@ -247,9 +247,13 @@ gradle:
# this tests the basic setup of the 'fdroid build' CI job in fdroiddata
fdroiddata fdroid build:
image: registry.gitlab.com/fdroid/ci-images-client:latest
only:
changes:
- buildserver/provision-apt-get-install
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
changes:
- buildserver/provision-apt-get-install
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- buildserver/provision-apt-get-install
script:
- bash buildserver/provision-apt-get-install http://deb.debian.org/debian
- apt-get dist-upgrade