Skip to content

Commit de8d092

Browse files
committed
feat: create tag after generating image
1 parent 98f9623 commit de8d092

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

create-image.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@ echo "Moving $WORK_FOLDER/$IMAGE_NAME to $RELEASES_FOLDER/$1/$IMAGE_NAME"
4040
mkdir -p "$RELEASES_FOLDER/$1"
4141
mv -f "$WORK_FOLDER/$IMAGE_NAME" "$RELEASES_FOLDER/$1/$IMAGE_NAME"
4242

43-
git pull --rebase
43+
echo "Commit & push changes"
4444
git commit -am "chore: native image for $1, generated on $TODAY"
45+
git pull --rebase
46+
git push
47+
4548
echo "Creating tag '$1-$TODAY'"
4649
git tag -a "$1-$TODAY" -m "Native image for $1, generated on $TODAY"
47-
echo "Moving tag $1-latest"
48-
git tag -af "$1-latest" -m "Latest version of the native image for $1"
50+
echo "Moving tag $1-current"
51+
git tag -af "$1-current" -m "Latest version of the native image for $1"
4952

50-
git push --tags
53+
git push origin "$1-$TODAY" -f
54+
git push origin "$1-current" -f

0 commit comments

Comments
 (0)