From cbc90c3002074a1c3f54c114fb64b34815f82a88 Mon Sep 17 00:00:00 2001 From: Henry Date: Sat, 7 Jun 2025 14:24:47 +0100 Subject: [PATCH] feat: multi-arch docker builds with latest tag --- .github/workflows/docker-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 441e6cff..924f3101 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -66,6 +66,10 @@ jobs: uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch,prefix=,suffix=,value=latest + type=ref,event=tag + type=sha,format=short # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action @@ -76,6 +80,7 @@ jobs: context: . file: apps/web/Dockerfile push: ${{ github.event_name != 'pull_request' }} + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha