Build Images #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} | |
- | |
# # 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 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 | |
- | |
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 |