Skip to content

Commit 57a8807

Browse files
Update release process to create a separate tag for registry-scanner
Signed-off-by: Ishita Sequeira <[email protected]>
1 parent 1257895 commit 57a8807

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/contributing/releasing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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.
44

5-
Releases can only be done by people that have write/commit access on the Argo Image Updater GitHub repository.
5+
Releases can only be done by people that have write/commit access on the Argo Image Updater GitHub repository.
66

77
## Introduction
88

hack/create-release-pr.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,22 @@ fi
4040

4141
echo $NEW_VERSION > VERSION
4242
IMAGE_TAG="v${NEW_VERSION}"
43+
# Update manifests
4344
make manifests
4445

46+
# Create PR for the release
4547
git checkout -b "feat/new-version-${NEW_VERSION}"
46-
git commit -m "Release ${NEW_VERSION}" VERSION manifests/
48+
49+
# Create tag for registry-scanner
50+
git tag -a ${IMAGE_TAG} -m "Registry-Scanner Release ${IMAGE_TAG}"
51+
git push ${REMOTE} "v${NEW_VERSION}"
52+
53+
# Update registry-scanner version in go.mod
54+
go mod edit -require github.com/argoproj-labs/argocd-image-updater/registry-scanner@${IMAGE_TAG}
55+
go mod download && go mod tidy
56+
57+
# Commit and push the changes
58+
git commit -m "Release ${NEW_VERSION}" VERSION go.mod go.sum manifests/
4759
git push --set-upstream ${REMOTE} "feat/new-version-${NEW_VERSION}"
4860
gh label --repo ${REMOTE_URL} create --force release
4961
gh pr --repo ${REMOTE_URL} \

0 commit comments

Comments
 (0)