Skip to content

Commit 1ab32b1

Browse files
committed
Fikser opp i workflows, bruker omsorgspenger som inspirasjon
1 parent 23f66a3 commit 1ab32b1

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/build-master.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- '.gitignore'
1010
- 'LICENSE'
1111
- 'CODEOWNERS'
12+
workflow_dispatch:
1213

1314
jobs:
1415
codeql:
@@ -20,7 +21,7 @@ jobs:
2021
security-events: write
2122
secrets: inherit
2223
with:
23-
readertoken: false
24+
javaversion: 21
2425
package-command: './gradlew clean build -x test'
2526
branch: master
2627

@@ -30,7 +31,7 @@ jobs:
3031
contents: read
3132
secrets: inherit
3233
with:
33-
readertoken: false
34+
javaversion: 21
3435

3536
build:
3637
uses: navikt/sif-gha-workflows/.github/workflows/gradle-build.yml@main
@@ -40,8 +41,7 @@ jobs:
4041
secrets: inherit
4142
with:
4243
team: k9saksbehandling
43-
dockercontext: .
44-
readertoken: false
44+
javaversion: 21
4545

4646
trivy:
4747
needs: [ build ]
@@ -61,8 +61,9 @@ jobs:
6161
uses: navikt/sif-gha-workflows/.github/workflows/gradle-deploy.yml@main
6262
permissions:
6363
contents: read
64+
id-token: write
6465
secrets: inherit
6566
with:
6667
image: ${{ needs.build.outputs.image }}
6768
environment: fss
68-
deploy-prod: ${{ startsWith(github.ref, 'refs/heads/master') }}
69+
deploy-prod: false

.github/workflows/build-pull-request.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: Build Pull Request
1+
name: Build Branch
22
on:
3-
pull_request:
3+
push:
4+
branches-ignore:
5+
- master
46
paths-ignore:
57
- '**.md'
68
- '**.MD'
@@ -15,4 +17,4 @@ jobs:
1517
contents: read
1618
secrets: inherit
1719
with:
18-
readertoken: false
20+
javaversion: 21

0 commit comments

Comments
 (0)