Skip to content

Commit

Permalink
Try with QEMU
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Dec 17, 2024
1 parent 0fd5e45 commit 682ef77
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/docker_reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,28 @@ on:
jobs:
docker_workflow:
name: "Build the ${{ inputs.target }} container"
strategy:
fail-fast: false
matrix:
os:
- [self-hosted, Linux]
- [self-hosted, macOS]
runs-on: ${{ matrix.os }}
runs-on: [self-hosted, Linux]
steps:
- name: Add homebrew to PATH
if: ${{ contains(matrix.os, 'macOS') }}
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
run: echo "/opt/homebrew/bin" >> "$GITHUB_PATH"
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push ${{ inputs.target }}
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
no-cache: true
file: ${{ inputs.dockerfile }}
Expand Down

0 comments on commit 682ef77

Please sign in to comment.