diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 271dfda..9d714f5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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