feat(kwasmer): annotate node #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |