This repository was archived by the owner on Apr 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: push-wasm-images
2
2
on :
3
3
push :
4
4
branches :
5
- - main
5
+ - fixpushimage
6
6
env :
7
7
TINYGO_VERSION : 0.32.0
8
8
Original file line number Diff line number Diff line change @@ -67,11 +67,13 @@ check:
67
67
# and push to ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples.
68
68
# See https://github.com/solo-io/wasm/blob/master/spec/spec-compat.md for details.
69
69
# Only-used in github workflow on the main branch, and not for developers.
70
+ repository := ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples
71
+
70
72
.PHONY : wasm_image.build_push
71
73
wasm_image.build_push :
72
74
@for f in ` find ./examples -type f -name " main.go" ` ; do \
73
75
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; \
75
77
docker build -t $$ ref . -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f ) /main.wasm; \
76
78
docker push $$ ref; \
77
79
done
@@ -85,7 +87,7 @@ wasm_image.build_push:
85
87
wasm_image.build_push_oci :
86
88
@for f in ` find ./examples -type f -name " main.go" ` ; do \
87
89
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; \
89
91
buildah bud -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f ) /main.wasm -t $$ ref . ; \
90
92
buildah push $$ ref; \
91
93
done
You can’t perform that action at this time.
0 commit comments