Skip to content

Commit 30ace4a

Browse files
authored
Merge pull request #46 from statisticsnorway/change-maven-versin
Change workflows to update Maven version
2 parents a6b14b7 + 1382438 commit 30ace4a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/main.yaml

+6-10
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ jobs:
3636
outputs:
3737
image-tag: ${{ env.DOCKER_IMAGE }}
3838
steps:
39-
- name: Checkout
40-
uses: actions/checkout@v4
39+
- name: Setup Maven Action # Composite action
40+
41+
with:
42+
java-version: 21
43+
java-distribution: zulu
44+
maven-version: 3.9.9
4145

4246
- name: Set docker image env var
4347
run: |
@@ -57,14 +61,6 @@ jobs:
5761
username: "oauth2accesstoken"
5862
password: "${{ steps.auth.outputs.access_token }}"
5963

60-
61-
- name: Set up Java
62-
uses: actions/setup-java@v4
63-
with:
64-
java-version: 21
65-
distribution: 'zulu'
66-
cache: maven
67-
6864
- name: Build with Maven and deploy to Artifact Registry
6965
run: mvn --batch-mode -P ssb-bip deploy
7066

0 commit comments

Comments
 (0)