From 2ab472e735a9ae278733307cfd3b622d283eb43f Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 8 Apr 2022 01:23:46 +0100 Subject: [PATCH] Problem: manual release OBS trigger is flaky Solution: use workflow instead --- .obs/workflows.yml | 10 ++++++++++ ci_deploy.sh | 8 -------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.obs/workflows.yml b/.obs/workflows.yml index 92c2ed2b..fd3c13b4 100644 --- a/.obs/workflows.yml +++ b/.obs/workflows.yml @@ -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 diff --git a/ci_deploy.sh b/ci_deploy.sh index a1982182..fac6d4e7 100644 --- a/ci_deploy.sh +++ b/ci_deploy.sh @@ -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