Update 'latest' tag using commit hash instead of version ref

This commit is contained in:
2025-05-23 16:04:05 +02:00
parent 643704d542
commit 4099ae5b47

View File

@@ -81,7 +81,9 @@ log_and_run git push origin "$NEXT_VERSION"
# Update the latest tag
printfe "%s\n" "cyan" "Updating 'latest' tag..."
log_and_run git tag -f latest "$NEXT_VERSION"
# Get the commit that the new version tag points to
COMMIT_HASH=$(git rev-parse "$NEXT_VERSION")
log_and_run git tag -f latest "$COMMIT_HASH"
log_and_run git push -f origin latest
printfe "%s\n" "green" "Successfully tagged and pushed version $NEXT_VERSION"