Skip to content

Commit aa7be22

Browse files
committed
feat: add multi-platform support and GitHub Actions caching to Docker build workflow
1 parent e4008cd commit aa7be22

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
2727

28+
- name: Set up QEMU
29+
uses: docker/setup-qemu-action@v3
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
2834
- name: Log into registry ${{ env.REGISTRY }}
2935
uses: docker/login-action@v3
3036
with:
@@ -46,9 +52,12 @@ jobs:
4652
with:
4753
context: .
4854
push: true
55+
platforms: linux/amd64,linux/arm64
4956
tags: ${{ steps.meta.outputs.tags }}
5057
labels: ${{ steps.meta.outputs.labels }}
5158
build-args: |
5259
DEV_USER=${{ env.DEV_USER }}
5360
DEV_UID=${{ env.DEV_UID }}
5461
DEV_GID=${{ env.DEV_GID }}
62+
cache-from: type=gha
63+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)