Skip to content

Commit

Permalink
Tooling: Update the GHCR CI file to provide a separate macOS release (#…
Browse files Browse the repository at this point in the history
…86)

This PR fixes #84 by providing a separate release for arm macOS machines.
The underlying problem was determined to be a known (not to us, at the time) limitation of the QEMU-based Docker emulation on these machines.
See: docker/for-mac#6620 for details with similar issues.
This completes the work started by #85.
  • Loading branch information
omeryusufyagci authored Dec 7, 2024
1 parent 427a6bc commit 5a605c9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build_and_publish_docker_image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish Docker Image
name: Build and Publish Docker Images

on:
push:
Expand All @@ -18,7 +18,6 @@ jobs:
id-token: write

steps:

- name: Checkout Repository
uses: actions/checkout@v3

Expand All @@ -29,11 +28,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Image
- name: Build Docker Image for Linux (amd64)
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/fast-music-remover:latest .
- name: Push Docker Image
- name: Push Docker Image for Linux (amd64)
if: github.event_name == 'push'
run: |
docker push ghcr.io/${{ github.repository_owner }}/fast-music-remover:latest
- name: Build Docker Image for macOS (amd64 workaround)
run: |
docker build --platform linux/amd64 -t ghcr.io/${{ github.repository_owner }}/fast-music-remover:macos-latest .
- name: Push Docker Image for macOS (amd64 workaround)
if: github.event_name == 'push'
run: |
docker push ghcr.io/${{ github.repository_owner }}/fast-music-remover:macos-latest

0 comments on commit 5a605c9

Please sign in to comment.