forked from confidential-containers/cloud-api-adaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.08 KB
/
azure-nightly-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: azure-nightly-build
on:
schedule:
# Runs "at midnight every day" (see https://crontab.guru)
# will base on default branch `main`
- cron: '0 3 * * *'
jobs:
generate-podvm-image-version:
if: github.event.inputs.podvm-image-id == ''
runs-on: ubuntu-latest
outputs:
image-version: "${{ steps.generate-image-version.outputs.image-version }}"
steps:
- name: Generate PodVM image version
id: generate-image-version
run: |
nightly_version=$(date +'%Y.%m.%d')
echo "Generated nightly version for the image as: ${nightly_version}"
echo "image-version=${nightly_version}" >> "$GITHUB_OUTPUT"
build-podvm-image:
uses: ./.github/workflows/azure-podvm-image-build.yml
needs:
- generate-podvm-image-version
secrets: inherit
with:
image-version: ${{ needs.generate-podvm-image-version.outputs.image-version }}
run-e2e-test:
uses: ./.github/workflows/azure-e2e-test.yml
needs:
- build-podvm-image
secrets: inherit
with:
podvm-image-id: ${{ needs.build-podvm-image.outputs.image-id }}