mirror of
https://github.com/mkuf/prind.git
synced 2025-10-26 07:46:19 +01:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: 'Build and Publish Images on a Schedule'
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 2 * * *'
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
app:
|
|
- klipper
|
|
- klipperscreen
|
|
- moonraker
|
|
- ustreamer
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: "[prind] checkout"
|
|
uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
- name: "[prind] set up build environment"
|
|
uses: ./.github/actions/image-build-common
|
|
- name: "[docker] login"
|
|
uses: docker/login-action@v3.5.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: "[prind] build"
|
|
run: |
|
|
python3 scripts/build/build.py ${{ matrix.app }} \
|
|
--backfill 3 \
|
|
--platform linux/amd64 \
|
|
--platform linux/arm/v6 \
|
|
--platform linux/arm/v7 \
|
|
--platform linux/arm64/v8 \
|
|
--registry docker.io/${{ secrets.DOCKERHUB_USERNAME }} \
|
|
--push
|