From fe27ab85dd85f3ec618d487ebba76b7f5155c455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Mrozek?= Date: Mon, 23 Sep 2024 10:26:21 +0200 Subject: [PATCH] feat: enable arm64 images support --- .github/workflows/build-and-publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d0e6345..fe712d7 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -34,6 +34,12 @@ jobs: - name: Checkout repository 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: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -46,6 +52,9 @@ jobs: with: context: ./tools/${{ env.IMAGE_NAME }} push: true + platforms: linux/amd64,linux/arm64/v8 + cache-from: type=gha + cache-to: type=gha,mode=max build-args: | node_version=${{ matrix.node }} ubuntu_version=${{ env.UBUNTU_VERSION }} @@ -77,6 +86,12 @@ jobs: - name: Checkout repository 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: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -89,6 +104,9 @@ jobs: with: context: ./tools/${{ env.IMAGE_NAME }} push: true + platforms: linux/amd64,linux/arm64/v8 + cache-from: type=gha + cache-to: type=gha,mode=max build-args: | node_version=${{ matrix.node }} ubuntu_version=${{ env.UBUNTU_VERSION }}