Skip to content

Commit

Permalink
Force delete tags
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning committed Mar 14, 2020
1 parent 0c3fa10 commit 9e27839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_gcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
REPO=$(ruby docker.rb get_repo)
OLD_IMAGES=$(gcloud container images list-tags $REPO --sort-by=~timestamp --format='get(digest)' | tail -n +3 | awk -v repo=$REPO '{print repo"@"$1}' | xargs)
echo Deleting: $OLD_IMAGES
gcloud container images delete $OLD_IMAGES
gcloud container images delete --force-delete-tags $OLD_IMAGES

0 comments on commit 9e27839

Please sign in to comment.