Skip to content

Commit

Permalink
Attempt to build both x86_64 and arm64 docker images.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Aug 4, 2024
1 parent 00b0888 commit ffa535a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- uses: actions/checkout@v3

- name: Exit if not on devel branch
Expand All @@ -19,6 +33,8 @@ jobs:
- name: Build Docker image
uses: docker/build-push-action@v4
with:
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
context: .
file: docker/Dockerfile
push: false
Expand Down

0 comments on commit ffa535a

Please sign in to comment.