Skip to content

Commit

Permalink
testing with repo access
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-koteswara committed Sep 26, 2024
1 parent 0b5d468 commit 9ac2a53
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/vertx-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
java-version: '17'
distribution: 'adopt'

# - name: Authenticate to Google Cloud
# uses: google-github-actions/auth@v2
# with:
# project_id: 'som-rit-infrastructure-prod'
# workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'

- name: Copy Maven settings
run: cp ./travis/settings.xml $HOME/.m2/settings.xml
Expand Down Expand Up @@ -68,15 +68,18 @@ jobs:
java-version: '17'
distribution: 'adopt'

# - name: Authenticate to Google Cloud
# uses: google-github-actions/auth@v2
# with:
# project_id: 'som-rit-infrastructure-prod'
# workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'

- name: Verify Artifact Registry Access
- name: Test Authentication with Maven Repository
run: |
gcloud artifacts repositories list --location=us-west1 --project=som-rit-infrastructure-prod
gcloud artifacts packages list \
--repository=public-maven \
--location=us-west1 \
--project=som-rit-infrastructure-prod
- name: Copy Maven settings
run: cp ./travis/settings.xml $HOME/.m2/settings.xml
Expand Down

0 comments on commit 9ac2a53

Please sign in to comment.