From 57a8807354bc4bcdc1ea77204968505088030d96 Mon Sep 17 00:00:00 2001 From: Ishita Sequeira Date: Mon, 27 Jan 2025 08:28:25 -0500 Subject: [PATCH] Update release process to create a separate tag for registry-scanner Signed-off-by: Ishita Sequeira --- docs/contributing/releasing.md | 2 +- hack/create-release-pr.sh | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/contributing/releasing.md b/docs/contributing/releasing.md index 0fb0f3e6..9e291ff4 100644 --- a/docs/contributing/releasing.md +++ b/docs/contributing/releasing.md @@ -2,7 +2,7 @@ Argo Image Updater is released in a 2 step automated fashion using GitHub actions. The release process takes about 20 minutes, sometimes a little less, depending on the performance of GitHub Actions runners. -Releases can only be done by people that have write/commit access on the Argo Image Updater GitHub repository. +Releases can only be done by people that have write/commit access on the Argo Image Updater GitHub repository. ## Introduction diff --git a/hack/create-release-pr.sh b/hack/create-release-pr.sh index 62782a3d..4bb65f17 100755 --- a/hack/create-release-pr.sh +++ b/hack/create-release-pr.sh @@ -40,10 +40,22 @@ fi echo $NEW_VERSION > VERSION IMAGE_TAG="v${NEW_VERSION}" +# Update manifests make manifests +# Create PR for the release git checkout -b "feat/new-version-${NEW_VERSION}" -git commit -m "Release ${NEW_VERSION}" VERSION manifests/ + +# Create tag for registry-scanner +git tag -a ${IMAGE_TAG} -m "Registry-Scanner Release ${IMAGE_TAG}" +git push ${REMOTE} "v${NEW_VERSION}" + +# Update registry-scanner version in go.mod +go mod edit -require github.com/argoproj-labs/argocd-image-updater/registry-scanner@${IMAGE_TAG} +go mod download && go mod tidy + +# Commit and push the changes +git commit -m "Release ${NEW_VERSION}" VERSION go.mod go.sum manifests/ git push --set-upstream ${REMOTE} "feat/new-version-${NEW_VERSION}" gh label --repo ${REMOTE_URL} create --force release gh pr --repo ${REMOTE_URL} \