Drop bare %% line that Mermaid rendered as a stray node #31
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 | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| pull_request: | |
| jobs: | |
| go: | |
| name: go build + vet | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - run: go mod download | |
| - run: go vet ./... | |
| - run: go build -v ./... | |
| - run: go test -v ./... | |
| image: | |
| name: docker image (multi-arch) | |
| needs: go | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # QEMU registers binfmt handlers so the runtime stage's | |
| # `apk add` can run under emulation for non-native architectures. | |
| # The build stage itself is pinned to BUILDPLATFORM (native) and | |
| # cross-compiles, so emulation is only needed for ~3 RUN lines. | |
| - uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: all | |
| - uses: docker/setup-buildx-action@v3 | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=ref,event=branch | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=sha,prefix= | |
| # Platform list mirrors what alpine:3.21 publishes — eight | |
| # architectures covering essentially every Linux host that runs | |
| # Docker today: x86 (amd64/386), ARM64 (Pi 4/5, Apple Silicon, | |
| # Graviton), ARMv7/v6 (Pi 1/2/3, Zero), POWER (ppc64le), IBM Z | |
| # (s390x), and RISC-V (riscv64). | |
| - uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386,linux/ppc64le,linux/s390x,linux/riscv64 | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |