-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathimage-build-and-publish-schedule.yaml
More file actions
38 lines (38 loc) · 1.07 KB
/
image-build-and-publish-schedule.yaml
File metadata and controls
38 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 'Build and Publish Images on a Schedule'
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
build:
strategy:
matrix:
app:
- klipper
- klipperscreen
- moonraker
- ustreamer
- laserweb
runs-on: ubuntu-24.04
steps:
- name: "[prind] checkout"
uses: actions/checkout@v6
with:
persist-credentials: false
- name: "[prind] set up build environment"
uses: ./.github/actions/image-build-common
- name: "[docker] login"
uses: docker/login-action@v3.7.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