-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.22 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
name: Bygg og deploy
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- '**.MD'
- '.gitignore'
- '.editorconfig'
- '.java-version'
- 'LICENSE'
- 'CODEOWNERS'
- 'docs/**'
- '.oracle/**'
- '.github/*.yml'
jobs:
build-app:
name: Build
permissions:
contents: read
packages: write
uses: navikt/fp-gha-workflows/.github/workflows/build-app.yml@main
with:
build-image: ${{ github.ref_name == 'master' }} # default: true
push-image: ${{ github.ref_name == 'master' }} # default: false
secrets: inherit
deploy-dev:
name: Deploy dev
if: github.ref_name == 'master'
needs: build-app
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
image: ghcr.io/${{ github.repository }}:${{ needs.build-app.outputs.build-version }}
cluster: dev-fss
secrets: inherit
deploy-prod:
name: Deploy prod
if: github.ref_name == 'master'
needs: [build-app, deploy-dev]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
image: ghcr.io/${{ github.repository }}:${{ needs.build-app.outputs.build-version }}
cluster: prod-fss
secrets: inherit