From 25e7b0c58b31725863d41b5d3a288ef19fee142c Mon Sep 17 00:00:00 2001 From: Luca Zorzi Date: Mon, 23 Feb 2026 15:42:32 +0100 Subject: [PATCH 1/3] Multiarch Docker build --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bbf86d..a6990d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,17 +9,38 @@ on: jobs: build: runs-on: ubuntu-latest - env: - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} steps: - - uses: actions/checkout@v2 + + - 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: install go uses: actions/setup-go@v2 with: go-version: 1.24 + - name: build and test run: make - - name: publish docker image + + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + registry: docker.io + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 if: ${{ github.ref == 'refs/heads/master' }} - run: make docker-push + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: $DOCKER_REPOSITORY:latest + From ce0f30f2d45aeb7c9dbadec120f96ffd7e447ea2 Mon Sep 17 00:00:00 2001 From: Luca Zorzi Date: Mon, 23 Feb 2026 15:49:22 +0100 Subject: [PATCH 2/3] Disable out-of-docker build, fix docker repo --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6990d9..c56e548 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,8 @@ jobs: with: go-version: 1.24 - - name: build and test - run: make + - name: test + run: make test - name: Log in to Docker Hub uses: docker/login-action@v3 @@ -42,5 +42,5 @@ jobs: context: . push: true platforms: linux/amd64,linux/arm64 - tags: $DOCKER_REPOSITORY:latest + tags: ${{ env.DOCKER_REPOSITORY }}:latest From 65cec3b86a9657640b6cc7b7de8744b8932fadf3 Mon Sep 17 00:00:00 2001 From: Luca Zorzi Date: Mon, 23 Feb 2026 15:55:54 +0100 Subject: [PATCH 3/3] Fixed docker repo var, for real --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c56e548..2e08af0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,5 +42,5 @@ jobs: context: . push: true platforms: linux/amd64,linux/arm64 - tags: ${{ env.DOCKER_REPOSITORY }}:latest + tags: ${{ vars.DOCKER_REPOSITORY }}:latest