Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake committed Jun 18, 2024
1 parent cc3032f commit 63b8d28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-wasm-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: push-wasm-images
on:
push:
branches:
- main
- fixpushimage
env:
TINYGO_VERSION: 0.32.0

Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ check:
# and push to ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples.
# See https://github.com/solo-io/wasm/blob/master/spec/spec-compat.md for details.
# Only-used in github workflow on the main branch, and not for developers.
repository := ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples

.PHONY: wasm_image.build_push
wasm_image.build_push:
@for f in `find ./examples -type f -name "main.go"`; do \
name=`echo $$f | sed -e 's/\\//-/g' | sed -e 's/\.-examples-//g' -e 's/\-main\.go//g'` ; \
ref=ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples:$$name; \
ref=${repository}:$$name; \
docker build -t $$ref . -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f)/main.wasm; \
docker push $$ref; \
done
Expand All @@ -85,7 +87,7 @@ wasm_image.build_push:
wasm_image.build_push_oci:
@for f in `find ./examples -type f -name "main.go"`; do \
name=`echo $$f | sed -e 's/\\//-/g' | sed -e 's/\.-examples-//g' -e 's/\-main\.go//g'` ; \
ref=ghcr.io/tetratelabs/proxy-wasm-go-sdk-examples:$$name-oci; \
ref=${repository}:$$name-oci; \
buildah bud -f examples/wasm-image.Dockerfile --build-arg WASM_BINARY_PATH=$$(dirname $$f)/main.wasm -t $$ref .; \
buildah push $$ref; \
done
Expand Down

0 comments on commit 63b8d28

Please sign in to comment.