Skip to content

Commit

Permalink
Simplify setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaar, Bjørn-Andre committed Mar 21, 2024
1 parent 6b72aca commit ea502a8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
Expand All @@ -23,6 +23,7 @@ jobs:
with:
java-version: 21
distribution: zulu
cache: maven

- name: Authenticate to Google Cloud
id: auth
Expand All @@ -31,14 +32,6 @@ jobs:
workload_identity_provider: "projects/848539402404/locations/global/workloadIdentityPools/gh-actions/providers/gh-actions"
service_account: "gh-actions-dapla-pseudo@artifact-registry-5n.iam.gserviceaccount.com"
token_format: access_token
export_environment_variables: true

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven and deploy to Artifact Registry
run: mvn -P ssb-bip deploy -Dmaven.javadoc.skip=true
Expand Down

0 comments on commit ea502a8

Please sign in to comment.