Merge pull request 'fix: build multi-arch images for amd64 and arm64' (#4) from fix/multi-arch-build into main

Reviewed-on: #4
This commit is contained in:
2026-06-11 17:26:57 +01:00
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -93,6 +93,9 @@ jobs:
echo "release=${release}" >> "$GITHUB_OUTPUT" echo "release=${release}" >> "$GITHUB_OUTPUT"
echo "Computed bump=${bump}, release=${release}, base=${base}" echo "Computed bump=${bump}, release=${release}, base=${base}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Buildx - name: Set up Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -108,6 +111,7 @@ jobs:
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.version.outputs.tags }} tags: ${{ steps.version.outputs.tags }}
labels: | labels: |
+3 -1
View File
@@ -46,7 +46,9 @@ docker run --rm -p 8080:8080 dlr
`.gitea/workflows/build-and-publish.yml` builds the container with Gitea Actions `.gitea/workflows/build-and-publish.yml` builds the container with Gitea Actions
on every push to `main` and on pull requests. Pull requests build the image but on every push to `main` and on pull requests. Pull requests build the image but
do not push. The registry host is derived from the Gitea server URL. do not push. The registry host is derived from the Gitea server URL. Images are
built for `linux/amd64` and `linux/arm64` (armv8) and published as a single
multi-arch manifest; the arm64 build runs under QEMU emulation.
Authentication requires a Personal Access Token with package read/write scope, Authentication requires a Personal Access Token with package read/write scope,
because the automatically provided `GITEA_TOKEN` does not carry container because the automatically provided `GITEA_TOKEN` does not carry container