Skip to content

Commit

Permalink
use QEMU to emulate different architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Nov 21, 2024
1 parent a4ab742 commit 0b5eb2a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,18 @@ jobs:
- name: Debug Git SHA
run: echo "Git SHA ${{ steps.get_sha.outputs.sha }}"

# Set up QEMU for cross-platform builds
- name: Set up QEMU
# https://github.com/docker/setup-qemu-action
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64,linux/amd64

- name: Set up Docker Buildx
# https://github.com/docker/setup-buildx-action
uses: docker/setup-buildx-action@v3
with:
driver: docker-container # Use a container driver for Buildx (default)

- name: Log in to Docker Hub
# https://github.com/docker/login-action
Expand All @@ -39,7 +48,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
# https://github.com/docker/build-push-action
# https://github.com/docker/build-push-action
uses: docker/build-push-action@v6
with:
context: ./docker # Build context
Expand Down

0 comments on commit 0b5eb2a

Please sign in to comment.