mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: give scheduled image builds more time between executions (#3297)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
59df2b7d92
commit
ffde0ef7b7
15
.github/workflows/build-os-image-scheduled.yml
vendored
15
.github/workflows/build-os-image-scheduled.yml
vendored
@ -4,11 +4,11 @@ on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 21 * * 2" # At 21:00 on Tuesday.
|
||||
- cron: "10 21 * * 2" # At 21:10 on Tuesday.
|
||||
- cron: "20 21 * * 2" # At 21:20 on Tuesday.
|
||||
- cron: "40 21 * * 2" # At 21:40 on Tuesday.
|
||||
- cron: "0 21 * * 4" # At 21:00 on Thursday.
|
||||
- cron: "10 21 * * 4" # At 21:10 on Thursday.
|
||||
- cron: "20 21 * * 4" # At 21:20 on Thursday.
|
||||
- cron: "40 21 * * 4" # At 21:40 on Thursday.
|
||||
|
||||
jobs:
|
||||
stream:
|
||||
@ -28,10 +28,10 @@ jobs:
|
||||
"0 21 * * 4" | "0 21 * * 2")
|
||||
echo "stream=debug" | tee -a "$GITHUB_OUTPUT"
|
||||
;;
|
||||
"10 21 * * 4" | "10 21 * * 2")
|
||||
"20 21 * * 4" | "20 21 * * 2")
|
||||
echo "stream=console" | tee -a "$GITHUB_OUTPUT"
|
||||
;;
|
||||
"20 21 * * 4" | "20 21 * * 2")
|
||||
"40 21 * * 4" | "40 21 * * 2")
|
||||
echo "stream=nightly" | tee -a "$GITHUB_OUTPUT"
|
||||
;;
|
||||
*)
|
||||
@ -54,11 +54,8 @@ jobs:
|
||||
|
||||
update-code:
|
||||
# On nightly stream only.
|
||||
if: |
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event.schedule == '20 21 * * 4' ||
|
||||
github.event.schedule == '20 21 * * 2'
|
||||
needs: build-image
|
||||
if: needs.stream.outputs.stream == 'nightly'
|
||||
needs: ["build-image", "stream"]
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
Loading…
Reference in New Issue
Block a user