mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-31 06:32:54 +01:00
Add basic nightly pipeline monitoring
This commit is contained in:
parent
212bf996c3
commit
7acda0d52c
@ -7,7 +7,11 @@ clone:
|
||||
steps:
|
||||
check-if-released:
|
||||
image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0
|
||||
secrets:
|
||||
- hc_url_nightly_deploy
|
||||
commands: |
|
||||
curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}/start"
|
||||
|
||||
RELEASED_VERSION_CODE=$(curl https://freeyourgadget.codeberg.page/fdroid/repo/index-v1.json | jq '.packages."nodomain.freeyourgadget.gadgetbridge.nightly"[0].versionCode')
|
||||
CURRENT_VERSION_CODE=$(git rev-list HEAD --count)
|
||||
|
||||
@ -17,6 +21,7 @@ steps:
|
||||
then
|
||||
echo "This version is already released, we quit!"
|
||||
touch .do_not_build
|
||||
curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}"
|
||||
fi
|
||||
|
||||
|
||||
@ -104,9 +109,19 @@ steps:
|
||||
# bump
|
||||
secrets: [ commit_token ]
|
||||
|
||||
on-success:
|
||||
image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0
|
||||
commands:
|
||||
- curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}"
|
||||
when:
|
||||
status: success
|
||||
secrets:
|
||||
- hc_url_nightly_deploy
|
||||
|
||||
on-error:
|
||||
image: codeberg.org/freeyourgadget/android-fdroid-tools:33.0.0
|
||||
commands:
|
||||
- curl -fsS -m 10 --retry 5 "$${hc_url_nightly_deploy}/fail"
|
||||
- cd ..
|
||||
- mkdir -p repoconfig
|
||||
- cd repoconfig
|
||||
@ -114,7 +129,9 @@ steps:
|
||||
- ./fdroid-repo-config/repoconfig/create_issue_comment.sh "CI failed"
|
||||
when:
|
||||
status: failure
|
||||
secrets: [ commit_token ]
|
||||
secrets:
|
||||
- hc_url_nightly_deploy
|
||||
- commit_token
|
||||
|
||||
when:
|
||||
- event: cron
|
||||
|
Loading…
Reference in New Issue
Block a user