-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (98 loc) · 2.85 KB
/
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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Bygg og deploy
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- '**.MD'
- '.gitignore'
- '.editorconfig'
- '.java-version'
- '.gitattributes'
- 'LICENSE'
- 'CODEOWNERS'
- 'docs/**'
- 'lokalutvikling/**'
- '.devcontainer/**'
- '.github/*.yml'
jobs:
build-app:
name: Build
permissions:
contents: read
packages: write
id-token: write
pull-requests: read
uses: navikt/fp-gha-workflows/.github/workflows/build-app-no-db.yml@main
with:
build-image: ${{ github.ref_name == 'master' }} # default: true
push-image: ${{ github.ref_name == 'master' }} # default: false
secrets: inherit
release-drafter:
name: Update
if: github.ref_name == 'master'
needs: build-app
permissions:
contents: write
pull-requests: read
uses: navikt/fp-gha-workflows/.github/workflows/release-drafter.yml@main
secrets: inherit
fpsak-tester:
name: Fpsak tester
permissions:
contents: read
id-token: write
if: github.ref_name == 'master'
needs: build-app
uses: navikt/fp-autotest/.github/workflows/autotest.yml@master
with:
build-version: ${{ needs.build-app.outputs.build-version }}
test-suite: fpsak
secrets: inherit
verdikjede-tester:
name: Verdikjedetester
permissions:
contents: read
id-token: write
if: github.ref_name == 'master'
needs: build-app
uses: navikt/fp-autotest/.github/workflows/autotest.yml@master
with:
build-version: ${{ needs.build-app.outputs.build-version }}
test-suite: verdikjede
secrets: inherit
notify:
name: Notify
if: github.ref_name == 'master' && (success() || failure()) && !contains(needs.*.result, 'skipped')
needs: [build-app, fpsak-tester, verdikjede-tester]
uses: navikt/fp-autotest/.github/workflows/report-and-notify.yml@master
with:
fpsak: ${{ needs.fpsak-tester.outputs.resultat }}
verdikjede: ${{ needs.verdikjede-tester.outputs.resultat }}
build-version: ${{ needs.build-app.outputs.build-version }}
secrets: inherit
deploy-dev:
name: Deploy dev
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, fpsak-tester, verdikjede-tester]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: dev-fss
secrets: inherit
deploy-prod:
name: Deploy prod
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, fpsak-tester, verdikjede-tester, deploy-dev]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: prod-fss
secrets: inherit