Skip to content

Commit

Permalink
Bump google-github-actions/auth (#20)
Browse files Browse the repository at this point in the history
* Bump google-github-actions/auth
* Bump artifactregistry-maven-wagon version
* Simplify build setup
* Disable batch mode
* Remove cache
  • Loading branch information
bjornandre authored Mar 21, 2024
1 parent 4835deb commit 7adf61a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,12 @@ jobs:

- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1.1.1
uses: google-github-actions/auth@v2
with:
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

- 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 --batch-mode -P ssb-bip deploy
run: mvn -P ssb-bip deploy -Dmaven.javadoc.skip=true

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1.1.1
uses: google-github-actions/auth@v2
with:
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"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<tink-fpe-java.version>0.0.13</tink-fpe-java.version>

<!-- Plugin/extension versions -->
<artifactregistry-maven-wagon.version>2.1.4</artifactregistry-maven-wagon.version>
<artifactregistry-maven-wagon.version>2.2.1</artifactregistry-maven-wagon.version>
<checkstyle.version>10.8.1</checkstyle.version>
<maven-checkstyle-plugin.version>3.3.1</maven-checkstyle-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
Expand Down

0 comments on commit 7adf61a

Please sign in to comment.