Skip to content

Commit 3973e8b

Browse files
committed
move new step to last
1 parent f4bc8e0 commit 3973e8b

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
@@ -333,6 +333,23 @@ promoteToPublic:
333333
Promoted release is **publicly available** through a git tag at [\`{{version}}\`](https://github.com/sourcegraph/deploy-sourcegraph-k8s/tree/{{version}}).
334334
EOF
335335
336+
- name: 'Promote on release registry'
337+
cmd: |
338+
echo "Promoting deploy-sourcegraph-k8s {{version}} release on release registry"
339+
body=$(wget --content-on-error -O- --header="Content-Type: application/json" --header="Authorization: ${RELEASE_REGISTRY_TOKEN}" --post-data '' "https://releaseregistry.sourcegraph.com/v1/releases/k8s/{{version}}/promote")
340+
exit_code=$?
341+
342+
if [ $exit_code != 0 ]; then
343+
echo "❌ Failed to promote release on release registry, got:"
344+
echo "--- raw body ---"
345+
echo $body
346+
echo "--- raw body ---"
347+
exit $exit_code
348+
else
349+
echo "Build created, see:"
350+
echo $body | jq .web_url
351+
fi
352+
336353
- name: "update main with latest version"
337354
cmd: |
338355
set -eu
@@ -390,19 +407,3 @@ promoteToPublic:
390407
--body "Test plan: automated release PR, CI will perform additional checks"
391408
echo "🚢 Please check the associated CI build to ensure the process completed".
392409
393-
- name: 'Promote on release registry'
394-
cmd: |
395-
echo "Promoting deploy-sourcegraph-k8s {{version}} release on release registry"
396-
body=$(wget --content-on-error -O- --header="Content-Type: application/json" --header="Authorization: ${RELEASE_REGISTRY_TOKEN}" --post-data '' "https://releaseregistry.sourcegraph.com/v1/releases/k8s/{{version}}/promote")
397-
exit_code=$?
398-
399-
if [ $exit_code != 0 ]; then
400-
echo "❌ Failed to promote release on release registry, got:"
401-
echo "--- raw body ---"
402-
echo $body
403-
echo "--- raw body ---"
404-
exit $exit_code
405-
else
406-
echo "Build created, see:"
407-
echo $body | jq .web_url
408-
fi

0 commit comments

Comments
 (0)