Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 4b4272f

Browse files
authored
ci: fixes the OCI image push (#448)
This migrates the OCI image workflow to properly use the personal token less repository-scoped package. In doing so, this change the destination repository name as in the patch. Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent 6d75c3f commit 4b4272f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ check:
6767
# and push to ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples.
6868
# See https://github.com/solo-io/wasm/blob/master/spec/spec-compat.md for details.
6969
# Only-used in github workflow on the main branch, and not for developers.
70+
repository := ghcr.io/tetratelabs/proxy-wasm-go-sdk-example
71+
7072
.PHONY: wasm_image.build_push
7173
wasm_image.build_push:
7274
@for f in `find ./examples -type f -name "main.go"`; do \
7375
name=`echo $$f | sed -e 's/\\//-/g' | sed -e 's/\.-examples-//g' -e 's/\-main\.go//g'` ; \
74-
ref=ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples:$$name; \
76+
ref=${repository}:$$name; \
7577
docker build -t $$ref . -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f)/main.wasm; \
7678
docker push $$ref; \
7779
done
@@ -85,7 +87,7 @@ wasm_image.build_push:
8587
wasm_image.build_push_oci:
8688
@for f in `find ./examples -type f -name "main.go"`; do \
8789
name=`echo $$f | sed -e 's/\\//-/g' | sed -e 's/\.-examples-//g' -e 's/\-main\.go//g'` ; \
88-
ref=ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples:$$name-oci; \
90+
ref=${repository}:$$name-oci; \
8991
buildah bud -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f)/main.wasm -t $$ref .; \
9092
buildah push $$ref; \
9193
done

0 commit comments

Comments
 (0)