From 67fbcdf20487ad8abadf5722f37176b3d32d323e Mon Sep 17 00:00:00 2001 From: Aarno Aukia Date: Fri, 17 Feb 2023 22:48:33 +0100 Subject: [PATCH] Add multi-platform build --- .github/workflows/docker-image.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index dcd603f..d409c25 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -13,6 +13,10 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Docker labels & tags metadata id: meta uses: docker/metadata-action@v4 @@ -31,3 +35,6 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} # push both tag name and "latest" on new git tag labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max