From 378181464cf3de874d15e8d6b55fbaeac0bce11b Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 17 Aug 2026 22:56:49 +0000 Subject: [PATCH] fix(owlbot-postprocessor): ensure GCR digest has sha256 prefix --- owlbot-postprocessor/cloudbuild.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/owlbot-postprocessor/cloudbuild.yaml b/owlbot-postprocessor/cloudbuild.yaml index d6dd3107..963891da 100644 --- a/owlbot-postprocessor/cloudbuild.yaml +++ b/owlbot-postprocessor/cloudbuild.yaml @@ -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