-
Notifications
You must be signed in to change notification settings - Fork 2
96 lines (90 loc) · 3.28 KB
/
datapakker.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
on:
push:
branches:
- master
paths:
- '.github/workflows/datapakker.yml'
- '.github/workflows/reusable-deploy.yml'
- '.github/actions/build-and-test/**'
- '.github/actions/setup-java/**'
- '.github/actions/deploy/**'
- '.github/actions/push-image/**'
- 'datapakker/**'
- 'common/**'
- 'gradle/**'
- 'build.gradle.kts'
permissions: {}
jobs:
build-test-push-image:
name: Build and push Docker container
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Build and test
uses: ./.github/actions/build-and-test
with:
gradle-arguments: :datapakker:soknad:build :datapakker:fritekstAvslag:build
- name: Push image soknad
uses: ./.github/actions/push-image
with:
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
tag: ${{ github.sha }}
dockerfile: ./datapakker/soknad/Dockerfile
image_suffix: 'datapakker-soknad-job'
- name: Push image fritekstAvslag
uses: ./.github/actions/push-image
with:
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
tag: ${{ github.sha }}
dockerfile: ./datapakker/fritekstAvslag/Dockerfile
image_suffix: 'datapakker-fritekstavslag-job'
deploy_to_dev_soknad:
name: Deploy to dev soknad
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-soknad-job:${{ github.sha }}
cluster: dev-fss
resource: datapakker/soknad/.nais/dev.yaml
deploy_to_dev_fritekstAvslag:
name: Deploy to dev fritekstAvslag
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-fritekstavslag-job:${{ github.sha }}
cluster: dev-fss
resource: datapakker/fritekstAvslag/.nais/dev.yaml
deploy_to_prod_soknad:
name: Deploy to prod
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-soknad-job:${{ github.sha }}
cluster: prod-fss
resource: datapakker/soknad/.nais/prod.yaml
deploy_to_prod_fritekstAvslag:
name: Deploy to prod
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-fritekstavslag-job:${{ github.sha }}
cluster: prod-fss
resource: datapakker/fritekstAvslag/.nais/prod.yaml