From 66b71dd7cd45442b6ea6006744e7f86a0fa348eb Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Wed, 20 Mar 2024 10:40:53 +0000 Subject: [PATCH 1/3] Move to multi arch build --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5eb94847..2b3b1299 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,7 @@ jobs: uses: docker/build-push-action@v5.1.0 with: push: true + platforms: linux/amd64,linux/arm64 tags: | docker.io/maruina/go-infrabin:${{ steps.tagName.outputs.tag }} ghcr.io/maruina/go-infrabin:${{ steps.tagName.outputs.tag }} From b7ca469dea9433b5df12506991cf755478e699b3 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Wed, 20 Mar 2024 10:44:18 +0000 Subject: [PATCH 2/3] Add platforms to PR and latest images --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74b35120..375eee1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,10 +46,11 @@ jobs: ignore: pkg/infrabin/infrabin.pb.go,pkg/infrabin/infrabin.pb.gw.go,pkg/infrabin/infrabin_grpc.pb.go - name: Build docker image on PR - uses: docker/build-push-action@v5.1.0 + uses: docker/build-push-action@v5.3.0 with: - tags: maruina/go-infrabin:latest push: false + platforms: linux/amd64,linux/arm64 + tags: maruina/go-infrabin:latest if: github.event_name == 'pull_request' - name: Login to DockerHub @@ -68,9 +69,10 @@ jobs: if: github.event_name == 'push' - name: Build and push latest docker image on master - uses: docker/build-push-action@v5.1.0 + uses: docker/build-push-action@v5.3.0 with: push: true + platforms: linux/amd64,linux/arm64 tags: | docker.io/maruina/go-infrabin:latest ghcr.io/maruina/go-infrabin:latest From 13f25efecd7db25b52621fbfcf8074ff4df3fec2 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Wed, 20 Mar 2024 10:48:01 +0000 Subject: [PATCH 3/3] Bump to 5.3.0 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b3b1299..1b56446a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push tagged docker image on master - uses: docker/build-push-action@v5.1.0 + uses: docker/build-push-action@v5.3.0 with: push: true platforms: linux/amd64,linux/arm64