Problem: manual release OBS trigger is flaky

Solution: use workflow instead
This commit is contained in:
Luca Boccassi 2022-04-08 01:23:46 +01:00
parent e9e01faa73
commit 2ab472e735
2 changed files with 10 additions and 8 deletions

View File

@ -4,3 +4,13 @@ workflow:
source_project: network:messaging:zeromq:git-draft source_project: network:messaging:zeromq:git-draft
source_package: libzmq source_package: libzmq
target_project: network:messaging:zeromq:ci target_project: network:messaging:zeromq:ci
release:
steps:
- trigger_services:
project: network:messaging:zeromq:release-stable
package: libzmq
- trigger_services:
project: network:messaging:zeromq:release-draft
package: libzmq
filters:
event: tag_push

View File

@ -15,14 +15,6 @@ if [[ $BUILD_TYPE == "default" && $CURVE == "libsodium" && -z $DRAFT ]]; then
md5sum *.zip *.tar.gz > MD5SUMS md5sum *.zip *.tar.gz > MD5SUMS
sha1sum *.zip *.tar.gz > SHA1SUMS sha1sum *.zip *.tar.gz > SHA1SUMS
cd - cd -
# Trigger source run on new tag on OBS. The latest tag will be fetched.
if [ -n "${OBS_STABLE_TOKEN}" ]; then
curl -H "Authorization: Token ${OBS_STABLE_TOKEN}" -X POST https://api.opensuse.org/trigger/runservice
fi
if [ -n "${OBS_DRAFT_TOKEN}" ]; then
curl -H "Authorization: Token ${OBS_DRAFT_TOKEN}" -X POST https://api.opensuse.org/trigger/runservice
fi
else else
export LIBZMQ_DEPLOYMENT="" export LIBZMQ_DEPLOYMENT=""
fi fi