Trigger Image Build #64
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: Trigger Image Build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '10 1 * * *' | |
jobs: | |
trigger: | |
runs-on: windows-2022 | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
train: [stable, beta, nightly] | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Check if image is up-to-date, and build if not | |
run: .\check-and-build.ps1 $env:TRAIN ${{ github.actor }} ${{ secrets.GITHUB_TOKEN }} | |
env: | |
TRAIN: ${{ matrix.train }} | |
USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |