mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01: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_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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user