-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (72 loc) · 2.29 KB
/
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: "Bygg og deploy"
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- '**.MD'
- '.gitignore'
- 'LICENSE'
- 'CODEOWNERS'
- '.github/*.yml'
jobs:
build-app:
name: Build
permissions:
contents: read
packages: write
id-token: write
uses: navikt/sif-gha-workflows/.github/workflows/maven-build-app-db.yml@main
with:
java-version: 21
build-image: ${{ github.actor != 'dependabot[bot]' }}
push-image: ${{ github.ref_name == github.event.repository.default_branch}}
upload-image: ${{ github.ref_name != github.event.repository.default_branch }}
db_schema: pleiepengerbarnuttak_unit
pg_version: 12
secrets: inherit
verdikjede-tester:
name: Verdikjedetester
secrets: inherit
permissions:
id-token: write
contents: write
issues: write
packages: read
uses: navikt/sif-gha-workflows/.github/workflows/verdikjede-test-v2.yml@main
if: ${{github.actor != 'dependabot[bot]'}}
needs: build-app
with:
tag: ${{ needs.build-app.outputs.build-version }}
suites: "pleiepenger,livetssluttfase,frontend"
override_image_artifact_name: ${{ github.ref_name != github.event.repository.default_branch && needs.build-app.outputs.image-artifact-name || null }}
image_version: ${{ needs.build-app.outputs.build-version }}
deploy-dev:
name: Deploy dev
permissions:
id-token: write
contents: write
if: github.ref_name == github.event.repository.default_branch
needs: [build-app, verdikjede-tester]
uses: navikt/sif-gha-workflows/.github/workflows/maven-deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: dev-fss
naiserator_file: nais/dev-fss-k9saksbehandling.yml
secrets: inherit
deploy-prod:
name: Deploy prod
permissions:
id-token: write
contents: write
if: github.ref_name == github.event.repository.default_branch
needs: [build-app, verdikjede-tester, deploy-dev]
uses: navikt/sif-gha-workflows/.github/workflows/maven-deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: prod-fss
naiserator_file: nais/prod-fss-k9saksbehandling.yml
secrets: inherit