Skip to content

Commit 807d02d

Browse files
committed
fix: image & tag creation script
1 parent e0e9e70 commit 807d02d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

create-image.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ mkdir -p "$RELEASES_FOLDER/$1"
4141
mv -f "$WORK_FOLDER/$IMAGE_NAME" "$RELEASES_FOLDER/$1/$IMAGE_NAME"
4242

4343
echo "Commit & push changes"
44-
git commit -am "chore: native image for $1, generated on $TODAY"
45-
git pull --rebase
44+
git add .
45+
git commit -m "chore: native image for $1, generated on $TODAY"
46+
git pull --rebase origin main
4647
git push
4748

4849
echo "Creating tag '$1-$TODAY'"
4950
git tag -a "$1-$TODAY" -m "Native image for $1, generated on $TODAY"
51+
git push origin "$1-$TODAY" -f
52+
5053
echo "Moving tag $1-current"
5154
git tag -af "$1-current" -m "Latest version of the native image for $1"
52-
53-
git push origin "$1-$TODAY" -f
5455
git push origin "$1-current" -f

0 commit comments

Comments
 (0)