Skip to content

Commit

Permalink
delete docker image when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
aelawrence committed Aug 30, 2023
1 parent cdea3af commit 28b5e6c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ steps:
#!/bin/bash
export MC_SERVICE_NAME="${_SERVICE_NAME}-$BUILD_ID"
gcloud run services delete "${MC_SERVICE_NAME}" --quiet --region "${_REGION}"
echo gcloud artifacts docker images delete us-central1-docker.pkg.dev/${PROJECT_ID}/docker/opa-sample-test --quiet --project ${PROJECT_ID}
gcloud artifacts docker images delete us-central1-docker.pkg.dev/${PROJECT_ID}/docker/opa-sample-test --quiet --project ${PROJECT_ID}
env:
- "BUILD_ID=$BUILD_ID"
- "_REGION=$_REGION"
- "_SERVICE_NAME=$_SERVICE_NAME"
- "IMAGE_NAME=opa-bundle"
- "PROJECT_ID=$PROJECT_ID"

- id: "report-status"
waitFor: ["e2e-cleanup"]
Expand Down

0 comments on commit 28b5e6c

Please sign in to comment.