Skip to content

Commit

Permalink
feat(images): Build multi-arch images
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
  • Loading branch information
SystemKeeper committed Aug 26, 2024
1 parent 3ca4785 commit fb7175e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

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

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

- name: Build Docker image ${{ matrix.dockerfile }}
run: |
cd "$(dirname ${{ matrix.dockerfile }})"
docker build . --file Dockerfile
docker build --platform linux/amd64,linux/arm64 . --file Dockerfile
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v2

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

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

- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
Expand All @@ -55,6 +61,7 @@ jobs:
- name: Build container image
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: true
context: ${{ github.event.inputs.folderPath }}
file: '${{ github.event.inputs.folderPath }}/${{ github.event.inputs.dockerFile }}'
Expand Down

0 comments on commit fb7175e

Please sign in to comment.