Trigger Image Build #3
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 | |
strategy: | |
matrix: | |
train: [stable, beta, nightly] | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.ref }} | |
- 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.REGISTRY }} | |
env: | |
TRAIN: ${{ matrix.train }} | |
USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |