-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (54 loc) · 1.56 KB
/
build-veiviser-hvor-mye.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
name: Bygg og deploy Veiviser-hvor-mye
on:
workflow_dispatch:
push:
paths:
- 'apps/veiviser-hvor-mye/**'
- 'packages/**'
- 'server-uinnlogget/**'
- '.deploy/veiviser-hvor-mye/**'
- '.deploy/naiserator.yaml'
- '.github/workflows/build-veiviser-hvor-mye.yml'
- 'Dockerfile'
- 'docker-bake.hcl'
- 'pnpm-lock.yaml'
jobs:
build-app:
name: Build
permissions:
packages: write
id-token: write
uses: navikt/fp-gha-workflows/.github/workflows/build-docker-bake.yml@main
with:
runs-on: 'ubuntu-latest-4-cores' # default: ubuntu-latest
push-image: ${{ github.ref_name == 'master' }} # default: false
bake-target: 'veiviser-hvor-mye'
secrets: inherit
deploy-dev:
name: Deploy dev
permissions:
id-token: write
if: github.ref_name == 'master'
needs: build-app
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: dev-gcp
image_suffix: '/veiviser-hvor-mye'
deploy_context: '/veiviser-hvor-mye'
secrets: inherit
deploy-prod:
name: Deploy prod
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, deploy-dev]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: prod-gcp
image_suffix: '/veiviser-hvor-mye'
deploy_context: '/veiviser-hvor-mye'
secrets: inherit