[pr3] update hello-wasm-container readme #34
This file contains hidden or 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: Build and Push Multi-Arch Images to GHCR | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| packages: write | |
| contents: read | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GHCR_PAT }} | |
| - name: Build and Push hello_world_host | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: chapter02/hello_world | |
| file: chapter02/hello_world/Dockerfile | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}/hello-world-host:latest | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Build and Push wasmtime_onnx | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: chapter05/wasmtime_onnx | |
| file: chapter05/wasmtime_onnx/Dockerfile | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}/wasmtime-onnx:latest | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Build and Push libsql_wasmudf | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: chapter05/libsql_wasmudf | |
| file: chapter05/libsql_wasmudf/Dockerfile | |
| push: true | |
| tags: ghcr.io/${{ github.repository }}/libsql-wasmudf:latest | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |