Skip to content

Commit

Permalink
move new step to last
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpleiness committed Dec 17, 2024
1 parent 49296ab commit 996dd7c
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,23 @@ promoteToPublic:
Promoted release is **publicly available** through a git tag at [\`{{version}}\`](https://github.com/sourcegraph/deploy-sourcegraph-helm/tree/{{version}}).
EOF
- name: 'Promote on release registry'
cmd: |
echo "Promoting deploy-sourcegraph-helm {{version}} release on release registry"
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")
exit_code=$?
if [ $exit_code != 0 ]; then
echo "❌ Failed to promote release on release registry, got:"
echo "--- raw body ---"
echo $body
echo "--- raw body ---"
exit $exit_code
else
echo "Build created, see:"
echo $body | jq .web_url
fi
- name: "update main with latest version"
cmd: |
set -eu
Expand Down Expand Up @@ -653,19 +670,3 @@ promoteToPublic:
--body "Test plan: automated release PR, CI will perform additional checks"
echo "🚢 Please check the associated CI build to ensure the process completed".
- name: 'Promote on release registry'
cmd: |
echo "Promoting deploy-sourcegraph-helm {{version}} release on release registry"
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")
exit_code=$?
if [ $exit_code != 0 ]; then
echo "❌ Failed to promote release on release registry, got:"
echo "--- raw body ---"
echo $body
echo "--- raw body ---"
exit $exit_code
else
echo "Build created, see:"
echo $body | jq .web_url
fi

0 comments on commit 996dd7c

Please sign in to comment.