multi platform build by default

This commit is contained in:
2026-10-16 18:54:30 +02:00
parent 7e5c7ae326
commit e75f481d68
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ on:
default: registry.traberph.de default: registry.traberph.de
platforms: platforms:
type: string type: string
default: linux/amd64 default: linux/amd64,linux/arm64
build-args: build-args:
description: Newline-separated KEY=value pairs, passed to every image. description: Newline-separated KEY=value pairs, passed to every image.
type: string type: string
+1 -2
View File
@@ -23,7 +23,6 @@ jobs:
uses: traberph/ci/.gitea/workflows/image.yaml@main uses: traberph/ci/.gitea/workflows/image.yaml@main
with: with:
images: '[{"image": "registry.traberph.de/private/cv"}]' images: '[{"image": "registry.traberph.de/private/cv"}]'
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
secrets: secrets:
registry-username: ${{ secrets.REGISTRY_USERNAME }} registry-username: ${{ secrets.REGISTRY_USERNAME }}
@@ -34,7 +33,7 @@ Inputs:
- `images` (required): JSON array of `{"image", "context", "dockerfile"}`; `context` defaults to `.`, `dockerfile` to `<context>/Dockerfile`. - `images` (required): JSON array of `{"image", "context", "dockerfile"}`; `context` defaults to `.`, `dockerfile` to `<context>/Dockerfile`.
- `registry`: registry to log in to (default `registry.traberph.de`). - `registry`: registry to log in to (default `registry.traberph.de`).
- `platforms`: default `linux/amd64`. QEMU is set up when an `arm` platform is listed. - `platforms`: default `linux/amd64,linux/arm64`. QEMU is set up when an `arm` platform is listed.
- `build-args`: newline-separated `KEY=value`, passed to every image. - `build-args`: newline-separated `KEY=value`, passed to every image.
- `push`: default `true`. - `push`: default `true`.
- `cache`: keep the layer cache in the registry as `<image>:buildcache` (default `false`). - `cache`: keep the layer cache in the registry as `<image>:buildcache` (default `false`).