Skip to content

Commit

Permalink
[patch] Added arm docker builds to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Aug 23, 2024
1 parent 31563e1 commit 0a37ea0
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0a37ea0

Please sign in to comment.