Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release verification workflow #6268

Merged
merged 7 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/scripts/release-verification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# limitations under the License.
# ------------------------------------------------------------

set -ex

# RELEASE_VERSION_NUMBER is the Radius release version number
# (e.g. 0.24.0, 0.24.0-rc1)
RELEASE_VERSION_NUMBER=$1
Expand All @@ -27,7 +29,7 @@ fi
EXPECTED_CLI_VERSION=$RELEASE_VERSION_NUMBER

EXPECTED_TAG_VERSION=$RELEASE_VERSION_NUMBER
# if RELEASE_VERSION_NUMBER doesn't contain -rc, then it is a prerelease.
# if RELEASE_VERSION_NUMBER contains -rc, then it is a prerelease.
# In that case, we need to set expected tag version to the major.minor of the
# release version number
if [[ $RELEASE_VERSION_NUMBER != *"rc"* ]]; then
Expand All @@ -38,7 +40,7 @@ echo "RELEASE_VERSION_NUMBER: ${RELEASE_VERSION_NUMBER}"
echo "EXPECTED_CLI_VERSION: ${EXPECTED_CLI_VERSION}"
echo "EXPECTED_TAG_VERSION: ${EXPECTED_TAG_VERSION}"

curl https://get.radapp.dev/tools/rad/$RELEASE_VERSION_NUMBER/linux-x64/rad --output rad
curl https://get.radapp.dev/tools/rad/$EXPECTED_TAG_VERSION/linux-x64/rad --output rad
chmod +x ./rad

RELEASE_FROM_RAD_VERSION=$(./rad version -o json | jq -r '.release')
Expand All @@ -65,7 +67,6 @@ APPCORE_RP_IMAGE=$(kubectl describe pods -n radius-system -l control-plane=appli
UCP_IMAGE=$(kubectl describe pods -n radius-system -l control-plane=ucp | awk '/^.*Image:/ {print $2}')
DE_IMAGE=$(kubectl describe pods -n radius-system -l control-plane=bicep-de | awk '/^.*Image:/ {print $2}')


if [[ "${APPCORE_RP_IMAGE}" != "${EXPECTED_APPCORE_RP_IMAGE}" ]]; then
echo "Error: Applications RP image: ${APPCORE_RP_IMAGE} does not match the desired image: ${EXPECTED_APPCORE_RP_IMAGE}."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-verification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Radius version number to use (e.g. 0.24, 0.24.0, 0.24.0-rc1)'
description: 'Radius version number to use (e.g. 0.1.0, 0.1.0-rc1)'
required: true
default: ''
type: string
Expand Down
Loading