From d90aca7148e57144d33b803c1decaa39147e28e5 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Sun, 23 Jan 2022 22:41:53 +0000 Subject: [PATCH] chore: docker build multiarch --- .github/workflows/docker-publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 19e54cc..cfdfcef 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -16,8 +16,14 @@ jobs: steps: - uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME + run: docker buildx build --builder multiarch --platform linux/arm/v7 --platform linux/arm64 --platform linux/amd64 . - name: Log into registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - name: Push image