Files
accounted/.github/workflows/docker-publish.yml
T
Jakob WennbergandClaude Opus 4.7 9b6ac0f4a6 ci(docker): publish multi-arch image (linux/amd64 + linux/arm64) (#503)
* ci(docker): publish multi-arch image (linux/amd64 + linux/arm64)

Apple Silicon users hit "no matching manifest for linux/arm64/v8"
when running `docker compose up -d` because the publish workflow
defaulted to the GHA runner's native arch (amd64). Add a QEMU setup
step and tell buildx to emit both linux/amd64 and linux/arm64
manifests under the same tag.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs(self-hosting): drop stale migration file count

The doc claimed "63 ordered SQL files" — actual count is ~210 and
growing every release. Removing the specific number so it stops drifting.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 10:07:09 +02:00

55 lines
1.3 KiB
YAML

name: Build and Push Docker Image
on:
push:
branches: [main]
env:
REGISTRY: ghcr.io
IMAGE_NAME: erp-mafia/gnubok
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest
type=sha,prefix=
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
EXTENSIONS_PRESET=self-hosted
cache-from: type=gha
cache-to: type=gha,mode=max