Skip to content

[chapter 5] partially addressed feedback from PR2 #16

[chapter 5] partially addressed feedback from PR2

[chapter 5] partially addressed feedback from PR2 #16

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
- 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