Skip to content

Commit

Permalink
setup auth for gcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
panthony committed Jun 30, 2023
1 parent 43b7d1d commit 45f8acb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ version: 2
jobs:
tests:
docker:
- image: google/cloud-sdk
auth:
username: _json_key
password: $GCP_AUTH
- image: circleci/openjdk:8-jdk

environment:
MAVEN_OPTS: -Xmx1024m
Expand Down Expand Up @@ -40,7 +37,13 @@ jobs:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}

- run: mvn deploy -DskipTests
- run:
name: Setup GCP auth
command: |
echo $GCP_AUTH > service_account.json
echo 'export GOOGLE_APPLICATION_CREDENTIALS=service_account.json' >> $BASH_ENV
source $BASH_ENV
mvn deploy -DskipTests
- save_cache:
paths:
Expand Down

0 comments on commit 45f8acb

Please sign in to comment.