From e2133f8ba76d17780ca1610201ae1f7f229cee18 Mon Sep 17 00:00:00 2001 From: FarisZR <35614734+FarisZR@users.noreply.github.com> Date: Sun, 26 May 2024 22:57:54 +0200 Subject: [PATCH 1/2] Update docker steps to build for arm64, armv7 and armv6 --- .github/workflows/release.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48a60cb3..c164eee1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -152,19 +152,26 @@ jobs: runs-on: ubuntu-latest needs: release steps: - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v2 - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: push: true + platforms: linux/amd64,linux/arm64,linux/arm/v7, linux/arm/v6 tags: rapiz1/rathole:latest, rapiz1/rathole:${{ github.ref_name }} + cache-from: type=gha + cache-to: type=gha,mode=max publish-crate: name: Publish to crates.io if: startsWith(github.ref, 'refs/tags/') From 1c3ac720cefaf2b316401411d09826c57414e2d4 Mon Sep 17 00:00:00 2001 From: FarisZR <35614734+FarisZR@users.noreply.github.com> Date: Mon, 27 May 2024 00:07:40 +0200 Subject: [PATCH 2/2] remove armv6, due to an upstream image not supporting it. --- .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 c164eee1..70881c3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -168,7 +168,7 @@ jobs: uses: docker/build-push-action@v4 with: push: true - platforms: linux/amd64,linux/arm64,linux/arm/v7, linux/arm/v6 + platforms: linux/amd64,linux/arm64,linux/arm/v7 tags: rapiz1/rathole:latest, rapiz1/rathole:${{ github.ref_name }} cache-from: type=gha cache-to: type=gha,mode=max