From b2b4449d7cafc8f65abb3fc490f966e416e78b2d Mon Sep 17 00:00:00 2001 From: MattsBos Date: Thu, 28 Sep 2023 07:35:52 +0000 Subject: [PATCH] Add ARM64 to build --- .github/workflows/docker-image.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index d5f8d6b..84d11b0 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -11,27 +11,33 @@ jobs: docker: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v3 - - - name: Docker Meta + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Docker Meta id: meta uses: docker/metadata-action@v4 with: images: clanbadjas/clanbotjas - - - name: Docker Login + + - name: Docker Login if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Docker Build and Push + + - name: Docker Build and Push uses: docker/build-push-action@v3 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}