From 31637c4815a70b1378004d0a84699c94f4581e65 Mon Sep 17 00:00:00 2001 From: Artem Stoianov Date: Mon, 16 May 2022 22:54:23 +0200 Subject: [PATCH] ci: build ARM image --- .github/workflows/_docker.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_docker.yaml b/.github/workflows/_docker.yaml index 5f1e008e..5b39cb41 100644 --- a/.github/workflows/_docker.yaml +++ b/.github/workflows/_docker.yaml @@ -27,8 +27,14 @@ jobs: with: ref: ${{ inputs.ref }} - - name: Log into registry - uses: docker/login-action@v1 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log to Registry + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -42,9 +48,10 @@ jobs: tags: type=semver,pattern={{version}},value=${{ inputs.ref }} - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . + platforms: linux/amd64,linux/arm,linux/arm64, push: ${{ inputs.publish }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}