From e492dd8ee816fdc13489283fbb3ef09b011c4f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20W=C3=B3jcik?= Date: Mon, 7 Oct 2024 11:42:07 +0200 Subject: [PATCH 1/2] build ARMv7 Docker images --- .github/workflows/build-docker.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 2de9d4363c..7490f5e8b8 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -19,12 +19,17 @@ jobs: - ${{ matrix.runner }} strategy: matrix: - cpu: [arm64, amd64] + cpu: [arm64, amd64, arm/v7] include: - cpu: arm64 runner: ARM64 + tag: arm64 - cpu: amd64 runner: X64 + tag: amd64 + - cpu: arm/v7 + runner: ARM + tag: armv7 steps: - name: Checkout uses: actions/checkout@v4 @@ -49,7 +54,7 @@ jobs: platforms: linux/${{ matrix.cpu }} provenance: false push: true - tags: ${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.cpu }} + tags: ${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }} cache-from: type=gha cache-to: type=gha,mode=max @@ -76,6 +81,6 @@ jobs: for tag in ${tags} do docker manifest rm ${tag} || true - docker manifest create ${tag} ${{ env.GHCR_REPO }}:${{ github.sha }}-amd64 ${{ env.GHCR_REPO }}:${{ github.sha }}-arm64 + docker manifest create ${tag} ${{ env.GHCR_REPO }}:${{ github.sha }}-amd64 ${{ env.GHCR_REPO }}:${{ github.sha }}-arm64 ${{ env.GHCR_REPO }}:${{ github.sha }}-armv7 docker manifest push ${tag} done From ef61893617e0f08391769a12f9b6e99720e9ae77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20W=C3=B3jcik?= Date: Mon, 7 Oct 2024 11:45:01 +0200 Subject: [PATCH 2/2] add quotes --- .github/workflows/build-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 7490f5e8b8..1af7b844e6 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -54,7 +54,7 @@ jobs: platforms: linux/${{ matrix.cpu }} provenance: false push: true - tags: ${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }} + tags: "${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }}" cache-from: type=gha cache-to: type=gha,mode=max