From 0d14046ddf3e72756e84eb9f750463932f27398d Mon Sep 17 00:00:00 2001 From: Sokhibjon Orzikulov Date: Sun, 15 Sep 2024 23:13:11 +0500 Subject: [PATCH] build for arm64 as well --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e7623d..0003cec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ env: jobs: build-and-push-image: runs-on: ubuntu-latest + permissions: contents: read packages: write @@ -20,8 +21,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@3 with: registry: ${{ env.REGISTRY }} username: ${{ env.IMAGE_AUTHOR }} @@ -34,9 +38,10 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_AUTHOR }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@6 with: context: . + platforms: linux/amd64,linux/arm64,linux/arm/v8 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}