diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index feac553153..3316ca17c9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,22 +15,29 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: kamilkisiela/graphql-inspector - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: kamilkisiela password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image - uses: docker/build-push-action@v4 + 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 }}