Build and Publish Images on a Schedule #445
This file contains hidden or 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 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 |