mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-25 14:20:52 +08:00
Problem: manual release OBS trigger is flaky
Solution: use workflow instead
This commit is contained in:
parent
e9e01faa73
commit
2ab472e735
@ -4,3 +4,13 @@ workflow:
|
||||
source_project: network:messaging:zeromq:git-draft
|
||||
source_package: libzmq
|
||||
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
|
||||
|
@ -15,14 +15,6 @@ if [[ $BUILD_TYPE == "default" && $CURVE == "libsodium" && -z $DRAFT ]]; then
|
||||
md5sum *.zip *.tar.gz > MD5SUMS
|
||||
sha1sum *.zip *.tar.gz > SHA1SUMS
|
||||
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
|
||||
export LIBZMQ_DEPLOYMENT=""
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user