Skip to content

Build Images

Build Images #125

Workflow file for this run

name: Build Images
#on:
# push:
# branches:
# - "master"
on:
workflow_dispatch: {}
schedule:
- cron: '0 0 * * *'
jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: GHCR Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
-
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-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-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