Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions owlbot-postprocessor/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ steps:
PREV_DIGEST=$$(gcloud container images list-tags gcr.io/cloud-devrel-public-resources/owlbot-ruby --filter="tags=latest" --format="value(digest)" 2>/dev/null || true)
if [ ! -z "$$PREV_DIGEST" ]; then
HEX_DIGEST=$${PREV_DIGEST#sha256:}
echo "Previous latest digest found: $$PREV_DIGEST. Adding deprecation tag..."
gcloud container images add-tag gcr.io/cloud-devrel-public-resources/owlbot-ruby@$$PREV_DIGEST gcr.io/cloud-devrel-public-resources/owlbot-ruby:deprecated-public-image-$$HEX_DIGEST --quiet
FULL_PREV_DIGEST="sha256:$$HEX_DIGEST"
echo "Previous latest digest found: $$FULL_PREV_DIGEST. Adding deprecation tag..."
gcloud container images add-tag gcr.io/cloud-devrel-public-resources/owlbot-ruby@$$FULL_PREV_DIGEST gcr.io/cloud-devrel-public-resources/owlbot-ruby:deprecated-public-image-$$HEX_DIGEST --quiet
else
echo "No previous latest image found to deprecate."
fi
Expand Down
Loading