Skip to content

Commit

Permalink
Merge pull request #87 from SovereignCloudStack/syself/fix-upgrade-bu…
Browse files Browse the repository at this point in the history
…ilder-image-script

🐛 fix upgrade builder image script
  • Loading branch information
kranurag7 committed Feb 28, 2024
2 parents 2096045 + 849eeaa commit 2950f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/upgrade-builder-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "${CI:-false}" = true ] ; then
echo $BUILD_IMAGE_TOKEN | docker login ghcr.io -u $BUILD_IMAGE_USER --password-stdin
fi

export VERSION=$(git fetch --quiet origin main && git show origin/main:Makefile | grep "BUILDER_IMAGE_VERSION :=" | sed 's/.*BUILDER_IMAGE_VERSION := //' | sed 's/\s.*$//' )
export VERSION=$(git fetch --quiet origin main && git show origin/main:.builder-image-version.txt)
export NEW_VERSION=$(semver_upgrade patch ${VERSION})

if docker manifest inspect ghcr.io/sovereigncloudstack/cso-builder:${VERSION} > /dev/null ; echo $?; then
Expand Down

0 comments on commit 2950f49

Please sign in to comment.