Skip to content

Commit

Permalink
Update release process to create a separate tag for registry-scanner
Browse files Browse the repository at this point in the history
Signed-off-by: Ishita Sequeira <ishiseq29@gmail.com>
  • Loading branch information
ishitasequeira committed Jan 27, 2025
1 parent 1257895 commit 57a8807
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/contributing/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 13 additions & 1 deletion hack/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit 57a8807

Please sign in to comment.