Update 'latest' tag using commit hash instead of version ref
This commit is contained in:
@@ -81,7 +81,9 @@ log_and_run git push origin "$NEXT_VERSION"
|
|||||||
|
|
||||||
# Update the latest tag
|
# Update the latest tag
|
||||||
printfe "%s\n" "cyan" "Updating '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
|
log_and_run git push -f origin latest
|
||||||
|
|
||||||
printfe "%s\n" "green" "Successfully tagged and pushed version $NEXT_VERSION"
|
printfe "%s\n" "green" "Successfully tagged and pushed version $NEXT_VERSION"
|
||||||
|
Reference in New Issue
Block a user