Skip to content

Commit

Permalink
[patch] pull request #91 from Feramance/90-native-apple-silicon-suppo…
Browse files Browse the repository at this point in the history
…rt-docker

ARM docker image testing
  • Loading branch information
Feramance authored Jul 9, 2024
2 parents 7c0dbfb + fd9c2a7 commit 04e6f82
Showing 1 changed file with 41 additions and 10 deletions.
51 changes: 41 additions & 10 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,7 @@ jobs:
feramance/qbitrr
ghcr.io/${{ steps.string.outputs.lowercase }}
tags: |
type=ref,event=pr,suffix=-arm
- name: Extract metadata (tags, labels) for ARM Docker
id: meta-arm
uses: docker/metadata-action@v5
with:
images: |
feramance/qbitrr
ghcr.io/${{ steps.string.outputs.lowercase }}
tags: |
type=ref,event=pr,suffix=-arm
type=ref,event=pr
- name: Build and push Docker images
env:
DOCKER_BUILDKIT: 1
Expand All @@ -170,6 +161,46 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
docker_image_arm:
name: Build ARM Docker Image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- id: string
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- 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 ARM Docker
id: meta-arm
uses: docker/metadata-action@v5
with:
images: |
feramance/qbitrr
ghcr.io/${{ steps.string.outputs.lowercase }}
tags: |
type=ref,event=pr,suffix=-arm
- name: Build and push ARM Docker images
env:
DOCKER_BUILDKIT: 1
Expand Down

0 comments on commit 04e6f82

Please sign in to comment.