Skip to content

Commit

Permalink
push-docker-image: ignore "latest" tag
Browse files Browse the repository at this point in the history
  • Loading branch information
chkn committed Aug 6, 2024
1 parent e585cdb commit 78ea57b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docker inspect --format='Pushing the local image "{{index .RepoTags 0}}" created
tags=$(gcloud artifacts docker tags list $GLIDE_DOCKER_IMAGE_NAME --format="get(tag)")

# Sort the tags and get the highest one
highest_tag=$(echo "$tags" | awk -F'/' '{print $NF}' | sort -V | tail -n 1)
highest_tag=$(echo "$tags" | awk -F'/' '{print $NF}' | sed 's/latest//g' | sort -V | tail -n 1)

echo "found highest tag on remote: $highest_tag"

Expand Down

0 comments on commit 78ea57b

Please sign in to comment.