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
This was required due to QEMU-based Docker emulation limitations
seen on arm macOS machines.
  • Loading branch information
omeryusufyagci committed Dec 7, 2024
1 parent 427a6bc commit be38ffa
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 be38ffa

Please sign in to comment.