From 372d9af4ea8da53aba7f4b878750e768d0920cd4 Mon Sep 17 00:00:00 2001 From: Tamas Levai Date: Sun, 17 Mar 2024 20:11:40 +0100 Subject: [PATCH] build(docker): Publish arm64 images too --- .github/workflows/docker-publish.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4ab34b9..09fb5a8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -12,23 +12,30 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v4 - + - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 with: images: ratoaq2/pgsrip - + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}