Skip to content

Commit

Permalink
Merge pull request #46 from statisticsnorway/change-maven-versin
Browse files Browse the repository at this point in the history
Change workflows to update Maven version
  • Loading branch information
mallport authored Oct 1, 2024
2 parents a6b14b7 + 1382438 commit 30ace4a
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
outputs:
image-tag: ${{ env.DOCKER_IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Maven Action # Composite action
uses: s4u/setup-maven-action@v1.7.0
with:
java-version: 21
java-distribution: zulu
maven-version: 3.9.9

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


- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'zulu'
cache: maven

- name: Build with Maven and deploy to Artifact Registry
run: mvn --batch-mode -P ssb-bip deploy

Expand Down

0 comments on commit 30ace4a

Please sign in to comment.