Skip to content

Commit

Permalink
build wasm go plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cr7258 committed Jun 26, 2024
1 parent 3d5cd9d commit 81c896a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-push-wasm-go-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ jobs:
with:
version: 1.2.0

- name: Login to Docker Registry
run: oras login -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }} ${{ env.IMAGE_REGISTRY }}

- name: Build Plugin Image and Push
working-directory: plugins/wasm-go
run: |
oras login -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }} ${{ env.IMAGE_REGISTRY }}
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
PLUGIN_VERSION=${{ github.event.inputs.plugin_version }}
PLUGIN_DIRS=(${{ github.event.inputs.plugin_name }})
Expand All @@ -46,7 +47,7 @@ jobs:
for plugin in ${PLUGIN_DIRS[@]}; do
echo "Building and pushing wasm go plugin: ${plugin}"
IMAGE="${IMAGE_REGISTRY}/plugins/wasm-go-${plugin}:${PLUGIN_VERSION}"
IMAGE="${IMAGE_REGISTRY}/wasm-go-${plugin}:${PLUGIN_VERSION}"
PLUGIN_DIR="./extensions/${plugin}"
GOPROXY="https://proxy.golang.org,direct" PLUGIN_NAME="${plugin}" make build
Expand Down

0 comments on commit 81c896a

Please sign in to comment.