ci: build and push multi-arch docker image on merge to main #4
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/docker-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a Forgejo Actions workflow that runs on pushes to
mainand publishesgit.w33ble.com/w33ble/pipit:latestfor linux/amd64 + linux/arm64.Dockerfile.ci) with--platform linux/amd64,linux/arm64 --pushDockerfile.cihas no RUN steps — arm64 layers are assembled via QEMU, which cannot executeapk; alpine:3.21 ships its own CA bundleChecks: cross-compile, client build, multi-arch buildx build, and an amd64 container smoke test (
/api/healthok, UI 200) all pass locally.Requires repo secrets
REGISTRY_USERandREGISTRY_TOKEN(same names as lagom).@ -0,0 +8,4 @@docker:runs-on: ubuntu-lateststeps:- uses: https://data.forgejo.org/actions/checkout@v7you don't need the full data.forgejo.org url, you can just use 'actions/checkout', 'actions/setup-go', etc.
@ -0,0 +6,4 @@# No RUN steps: arm64 layers are emulated via QEMU, which cannot execute apk.# Alpine ships its own CA bundle at /etc/ssl/certs/ca-certificates.crt.FROM alpine:3.21lets just use alpine:latest