Skip to content

Commit

Permalink
Multi Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsongraca committed Nov 26, 2024
1 parent 97727fb commit 685375d
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
permissions:
contents: read
packages: write

steps:
-
name: Checkout
Expand All @@ -30,31 +29,35 @@ jobs:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
# -
# # Add support for more platforms with QEMU (optional)
# # https://github.com/docker/setup-qemu-action
# name: Set up QEMU
# uses: docker/setup-qemu-action@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build Klipper
uses: docker/build-push-action@v6
with:
platforms: linux/amd64, linux/arm64
context: .
cache-from: type=registry,ref=ghcr.io/nelsongraca/kdock-klipper:buildcache
cache-to: type=registry,ref=ghcr.io/nelsongraca/kdock-klipper:buildcache,mode=max
cache-from: type=registry,ref=ghcr.io/nelsongraca/kdock-cache:buildcache
cache-to: type=registry,ref=ghcr.io/nelsongraca/kdock-cache:buildcache,mode=max
push: true
provenance: false
tags: ghcr.io/nelsongraca/kdock-klipper:latest
target: klipper
-
name: Build Moonraker
uses: docker/build-push-action@v6
with:
platforms: linux/amd64, linux/arm64
context: .
cache-from: type=registry,ref=ghcr.io/nelsongraca/kdock-moonraker:buildcache
cache-to: type=registry,ref=ghcr.io/nelsongraca/kdock-moonraker:buildcache,mode=max
cache-from: type=registry,ref=ghcr.io/nelsongraca/kdock-cache:buildcache
cache-to: type=registry,ref=ghcr.io/nelsongraca/kdock-cache:buildcache,mode=max
push: true
provenance: false
tags: ghcr.io/nelsongraca/kdock-moonraker:latest
target: moonraker

0 comments on commit 685375d

Please sign in to comment.