-
-
Notifications
You must be signed in to change notification settings - Fork 48
29 lines (27 loc) · 708 Bytes
/
main.yaml
File metadata and controls
29 lines (27 loc) · 708 Bytes
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
name: main
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yaml
lint:
uses: ./.github/workflows/lint.yaml
test:
uses: ./.github/workflows/test.yaml
needs: build
with:
artifact: ${{ needs.build.outputs.artifact }}
version: ${{ needs.build.outputs.version }}
deploy:
uses: ./.github/workflows/deploy.yaml
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
needs: [build, lint, test]
with:
artifact: ${{ needs.build.outputs.artifact }}
version: ${{ needs.build.outputs.version }}
secrets:
KUBECONFIG: ${{ secrets.KUBECONFIG }}