Skip to content

feat(kwasmer): annotate node #20

feat(kwasmer): annotate node

feat(kwasmer): annotate node #20

Workflow file for this run

name: JavaScript (Publish Docker)
on:
push:
branches:
- main
pull_request:
jobs:
publish:
name: Publish to Docker Hub
runs-on: ubuntu-latest
defaults:
run:
working-directory: javascript
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Install
run: npm install
- name: Build WASM
run: npm run wasm
- name: Build OCI Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
context: javascript
image: marcnuri/hello-world-of-wasm
tags: javascript js
containerfiles: javascript/Dockerfile
platforms: wasi/wasm
- name: Push To hub.docker.com
uses: redhat-actions/push-to-registry@v2
with:
registry: docker.io
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}