-
Notifications
You must be signed in to change notification settings - Fork 62
59 lines (51 loc) · 1.63 KB
/
nightly-build.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: nightly-build
on:
schedule:
- cron: "30 1 * * *"
permissions: {}
defaults:
run:
shell: bash
env:
SKIP_INTEGRATION_TESTS: 'non-required' # 'none', 'non-required', 'all'
jobs:
conditionals:
runs-on: ubuntu-latest
outputs:
skip_integration_tests: ${{ steps.conditionals.outputs.skip_integration_tests }}
steps:
- name: CI conditionals
id: conditionals
run: |
echo "skip_integration_tests=${SKIP_INTEGRATION_TESTS}" >> ${GITHUB_OUTPUT}
build:
uses: ./.github/workflows/.reusable-build.yml
permissions:
packages: write
secrets: inherit
sca:
uses: ./.github/workflows/.reusable-sca.yml
needs: [build]
permissions:
contents: write
security-events: write
packages: read
secrets: inherit
with:
registry: ${{ needs.build.outputs.build_registry }}
repo_owner: ${{ github.repository_owner }}
image: ${{ needs.build.outputs.build_image }}
integration-test:
uses: ./.github/workflows/.reusable-integration-test.yml
needs: [conditionals, build]
if: needs.conditionals.outputs.skip_integration_tests != 'all'
permissions:
packages: read
secrets: inherit
with:
build_registry: ${{ needs.build.outputs.build_registry }}
repo_owner: ${{ github.repository_owner }}
build_image_repository: ${{ needs.build.outputs.build_registry }}/${{ needs.build.outputs.build_repo }}
build_tag: ${{ needs.build.outputs.build_tag }}
skip_integration_tests: ${{ needs.conditionals.outputs.skip_integration_tests }}
cosign_public_key: ${{ needs.build.outputs.cosign_public_key }}