-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.07 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
name: Main
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
lint:
uses: ./.github/workflows/lint.yml
tests:
uses: ./.github/workflows/tests.yml
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
build:
uses: ./.github/workflows/build.yml
docker-build:
if: github.event_name == 'push'
needs:
- tests
- lint
- build
uses: ./.github/workflows/docker-build.yml
secrets:
docker_username: ${{ secrets.BOT_DOCKER_USERNAME }}
docker_token: ${{ secrets.BOT_DOCKER_TOKEN }}
nexus_username: ${{ secrets.NEXUS_USER }}
nexus_token: ${{ secrets.NEXUS_TOKEN }}
sysdig_token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
kms_gcp_project: ${{ secrets.MIA_PLATFORM_KMS_GCP_PROJECT }}
gcp_wif: ${{ secrets.MIA_PLATFORM_WIF }}
cosign_key: ${{ secrets.MIA_PLATFORM_KEY_KMS }}
npm-publish:
if: github.ref_type == 'tag'
needs:
- tests
- lint
- build
uses: ./.github/workflows/publish.yml
secrets:
token: ${{ secrets.NPM_TOKEN }}