Skip to content

Commit 163b118

Browse files
authored
build: also tag the Emulator image with no-new-use (#4085)
1 parent a9e5431 commit 163b118

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docker-build-and-push.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
--filter="NOT tags:no-new-use*" \
4949
| grep -v "^Listing items under project" \
5050
| sed -n 's/^[^ ]* *sha256:\([^ ]*\).*$/gcloud artifacts docker tags add us-docker.pkg.dev\/cloud-spanner-pg-adapter\/gcr.io\/pgadapter-distroless@sha256:\1 us-docker.pkg.dev\/cloud-spanner-pg-adapter\/gcr.io\/pgadapter-distroless:no-new-use-public-image-\1/p')"
51+
eval "$(gcloud --verbosity=error artifacts docker images list us-docker.pkg.dev/cloud-spanner-pg-adapter/gcr.io/pgadapter-emulator 2>&1 \
52+
--include-tags \
53+
--filter="NOT tags:no-new-use*" \
54+
| grep -v "^Listing items under project" \
55+
| sed -n 's/^[^ ]* *sha256:\([^ ]*\).*$/gcloud artifacts docker tags add us-docker.pkg.dev\/cloud-spanner-pg-adapter\/gcr.io\/pgadapter-emulator@sha256:\1 us-docker.pkg.dev\/cloud-spanner-pg-adapter\/gcr.io\/pgadapter-emulator:no-new-use-public-image-\1/p')"
5156
5257
# Build and Publish the Docker images
5358
- name: Build and Publish

0 commit comments

Comments
 (0)