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:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 21 * * 2" # At 21:00 on Tuesday.
|
- 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: "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: "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: "20 21 * * 4" # At 21:20 on Thursday.
|
||||||
|
- cron: "40 21 * * 4" # At 21:40 on Thursday.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stream:
|
stream:
|
||||||
@ -28,10 +28,10 @@ jobs:
|
|||||||
"0 21 * * 4" | "0 21 * * 2")
|
"0 21 * * 4" | "0 21 * * 2")
|
||||||
echo "stream=debug" | tee -a "$GITHUB_OUTPUT"
|
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"
|
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"
|
echo "stream=nightly" | tee -a "$GITHUB_OUTPUT"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -54,11 +54,8 @@ jobs:
|
|||||||
|
|
||||||
update-code:
|
update-code:
|
||||||
# On nightly stream only.
|
# On nightly stream only.
|
||||||
if: |
|
if: needs.stream.outputs.stream == 'nightly'
|
||||||
github.event_name == 'workflow_dispatch' ||
|
needs: ["build-image", "stream"]
|
||||||
github.event.schedule == '20 21 * * 4' ||
|
|
||||||
github.event.schedule == '20 21 * * 2'
|
|
||||||
needs: build-image
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
Loading…
Reference in New Issue
Block a user