Skip to content

Commit

Permalink
remove hardcoded projects / deployments etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Sep 11, 2023
1 parent b7351f5 commit 8bbcb11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Cleanup
run: |-
for digest in $(gcloud container images list-tags gcr.io/clean-resource-316109/smart-vault-api --format="get(digest)" --limit=100 --filter="NOT tags:${GITHUB_REF##*/}.${GITHUB_SHA}")
for digest in $(gcloud container images list-tags gcr.io/$PROJECT_NAME/$DEPLOYMENT --format="get(digest)" --limit=100 --filter="NOT tags:${GITHUB_REF##*/}.${GITHUB_SHA}")
do
gcloud container images delete "gcr.io/clean-resource-316109/smart-vault-api@$digest" --force-delete-tags --quiet
gcloud container images delete "gcr.io/$PROJECT_NAME/$DEPLOYMENT@$digest" --force-delete-tags --quiet
done

0 comments on commit 8bbcb11

Please sign in to comment.