From 0a37ea09a9d32c4d03cc3c862049f3964a725568 Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 23 Aug 2024 15:59:23 +0200 Subject: [PATCH] [patch] Added arm docker builds to release --- .github/workflows/release.yml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 537179cc..169193b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -262,6 +262,56 @@ jobs: file_glob: true tag: v${{needs.bump_version.outputs.NEW_RELEASE}} overwrite: true + docker_image_arm: + name: Build ARM Docker Image + needs: [bump_version, release, release_hash] + runs-on: ubuntu-latest + steps: + - id: string + uses: ASzc/change-string-case-action@v6 + with: + string: ${{ github.repository }} + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: master + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.REG_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: | + feramance/qbitrr + ghcr.io/${{ steps.string.outputs.lowercase }} + tags: | + type=edge + - name: Build and push + env: + DOCKER_BUILDKIT: 1 + uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/arm64 + push: true + tags: feramance/qbitrr:nightly-arm,feramance/qbitrr:latest-arm,feramance/qbitrr:v${{needs.bump_version.outputs.NEW_RELEASE}}-arm,ghcr.io/${{ steps.string.outputs.lowercase }}:nightly-arm,ghcr.io/${{ steps.string.outputs.lowercase }}:latest-arm,ghcr.io/${{ steps.string.outputs.lowercase }}:v${{needs.bump_version.outputs.NEW_RELEASE}}-arm + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max docker_image: name: Build Docker Image needs: [bump_version, release, release_hash]