Skip to content

Commit 1bc01f8

Browse files
committed
move new step to last
1 parent 266b119 commit 1bc01f8

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

release.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,23 @@ promoteToPublic:
543543
Promoted release is **publicly available** through a git tag at [\`{{version}}\`](https://github.com/sourcegraph/deploy-sourcegraph-helm/tree/{{version}}).
544544
EOF
545545
546+
- name: 'Promote on release registry'
547+
cmd: |
548+
echo "Promoting deploy-sourcegraph-helm {{version}} release on release registry"
549+
body=$(wget --content-on-error -O- --header="Content-Type: application/json" --header="Authorization: ${RELEASE_REGISTRY_TOKEN}" --post-data '' "https://releaseregistry.sourcegraph.com/v1/releases/helm/{{version}}/promote")
550+
exit_code=$?
551+
552+
if [ $exit_code != 0 ]; then
553+
echo "❌ Failed to promote release on release registry, got:"
554+
echo "--- raw body ---"
555+
echo $body
556+
echo "--- raw body ---"
557+
exit $exit_code
558+
else
559+
echo "Build created, see:"
560+
echo $body | jq .web_url
561+
fi
562+
546563
- name: "update main with latest version"
547564
cmd: |
548565
set -eu
@@ -653,19 +670,3 @@ promoteToPublic:
653670
--body "Test plan: automated release PR, CI will perform additional checks"
654671
echo "🚢 Please check the associated CI build to ensure the process completed".
655672
656-
- name: 'Promote on release registry'
657-
cmd: |
658-
echo "Promoting deploy-sourcegraph-helm {{version}} release on release registry"
659-
body=$(wget --content-on-error -O- --header="Content-Type: application/json" --header="Authorization: ${RELEASE_REGISTRY_TOKEN}" --post-data '' "https://releaseregistry.sourcegraph.com/v1/releases/helm/{{version}}/promote")
660-
exit_code=$?
661-
662-
if [ $exit_code != 0 ]; then
663-
echo "❌ Failed to promote release on release registry, got:"
664-
echo "--- raw body ---"
665-
echo $body
666-
echo "--- raw body ---"
667-
exit $exit_code
668-
else
669-
echo "Build created, see:"
670-
echo $body | jq .web_url
671-
fi

0 commit comments

Comments
 (0)