-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (64 loc) · 1.61 KB
/
main.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Main
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- ".github/workflows/**"
- "lib/**"
- "tests/**"
- "package.json"
- "package-lock.json"
- "Dockerfile"
- "index.js"
- "envSchema.js"
push:
branches:
- main
paths:
- ".github/workflows/**"
- "lib/**"
- "tests/**"
- "package.json"
- "package-lock.json"
- "Dockerfile"
- "index.js"
- "envSchema.js"
jobs:
checks:
uses: ./.github/workflows/checks.yml
tests:
needs:
- checks
uses: ./.github/workflows/tests.yml
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
release-docker:
needs:
- tests
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
uses: ./.github/workflows/release-docker.yml
secrets:
docker_username: ${{ secrets.BOT_DOCKER_USERNAME }}
docker_token: ${{ secrets.BOT_DOCKER_TOKEN }}
github_cr_token: ${{ secrets.GITHUB_TOKEN }}
nexus_username: ${{ secrets.NEXUS_USER }}
nexus_token: ${{ secrets.NEXUS_TOKEN }}
sysdig_token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
security-checks:
needs:
- tests
- release-docker
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
uses: ./.github/workflows/security-checks.yml
with:
version: main
secrets:
security_checks_token: ${{ secrets.CRUD_SERVICE_SYSDIG_CHECK_TRIGGER }}
perf-test:
needs:
- checks
- release-docker
- tests
uses: ./.github/workflows/perf-test.yml