Skip to content

Update google-github-actions/auth action to v2.1.7 #300

Update google-github-actions/auth action to v2.1.7

Update google-github-actions/auth action to v2.1.7 #300

Workflow file for this run

name: main
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
maven:
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 22
- uses: google-github-actions/[email protected]
with:
workload_identity_provider: projects/401363556022/locations/global/workloadIdentityPools/github/providers/github-oidc
service_account: [email protected]
- run: gcloud auth configure-docker europe-north1-docker.pkg.dev
- run: >
mvn deploy
--no-transfer-progress
--define image.repository=europe-north1-docker.pkg.dev/personal-artifacts-353012/harmelodic/init-microservice
--define image.tag=${GITHUB_SHA:-latest}
--define pact.verifier.publishResults=true
--define pact.broker.url=https://pact.harmelodic.com
--define pact.broker.username=pact-broker-user
--define pact.broker.password=${{ secrets.PACT_BROKER_PASSWORD }}
# pact.broker.* used for publishing Consumer PACTs
# pact.verifier.publishResults is for publishing Provider test results
env:
PACTBROKER_AUTH_USERNAME: pact-broker-user # For publishing Provider results
PACTBROKER_AUTH_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }} # For publishing Provider results
terraform:
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: google-github-actions/[email protected]
with:
workload_identity_provider: projects/401363556022/locations/global/workloadIdentityPools/github/providers/github-oidc
service_account: [email protected]
- uses: hashicorp/setup-terraform@v3
- run: terraform -chdir=infrastructure init -upgrade
- run: terraform -chdir=infrastructure validate