mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
4020e7840a
into GITHUB_OUTPUT Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Build and Upload OS image (scheduled)
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 21 * * 5" # At 21:00 on Friday.
|
|
- cron: "10 21 * * 5" # At 21:10 on Friday.
|
|
- cron: "20 21 * * 5" # At 21:20 on Friday.
|
|
|
|
jobs:
|
|
stream:
|
|
runs-on: ubuntu-22.04
|
|
outputs:
|
|
stream: ${{ steps.stream.outputs.stream }}
|
|
steps:
|
|
- name: Determine stream
|
|
id: stream
|
|
run: |
|
|
case "${{ github.event.schedule }}" in
|
|
"0 21 * * 5")
|
|
echo "stream=debug" | tee -a "$GITHUB_OUTPUT"
|
|
;;
|
|
"10 21 * * 5")
|
|
echo "stream=console" | tee -a "$GITHUB_OUTPUT"
|
|
;;
|
|
"20 21 * * 5")
|
|
echo "stream=nightly" | tee -a "$GITHUB_OUTPUT"
|
|
;;
|
|
*)
|
|
echo "::error::Unknown stream for schedule '${{ github.event.schedule }}'"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
build-image:
|
|
needs: stream
|
|
uses: ./.github/workflows/build-os-image.yml
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
packages: read
|
|
secrets: inherit
|
|
with:
|
|
stream: ${{ needs.stream.outputs.stream }}
|
|
ref: main
|