Skip to content

Commit

Permalink
Update vertx-base.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-koteswaradodda authored Oct 7, 2024
1 parent 09ea36f commit 391d48a
Showing 1 changed file with 30 additions and 17 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/vertx-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,6 @@ jobs:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'

- name: Set up OAuth2 access token for Maven
run: |
echo "ACCESS_TOKEN=$(gcloud auth print-access-token)" >> $GITHUB_ENV
- name: Configure Maven Artifact Registry
run: |
echo "<settings>
<servers>
<server>
<id>artifact-registry</id>
<username>oauth2accesstoken</username>
<password>${env.ACCESS_TOKEN}</password>
</server>
</servers>
</settings>" > $HOME/.m2/settings.xml
# - name: Copy Maven settings
# run: cp ./travis/maven-settings.xml $HOME/.m2/settings.xml

Expand Down Expand Up @@ -99,14 +83,43 @@ jobs:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'

- name: Set up OAuth2 access token for Maven
run: |
echo "ACCESS_TOKEN=$(gcloud auth print-access-token)" >> $GITHUB_ENV
- name: Configure Maven Artifact Registry
run: |
echo "<settings>
<profiles>
<profile>
<id>deploy-snapshot</id>
<repositories>
<repository>
<id>artifact-registry</id>
<url>https://us-west1-maven.pkg.dev/som-rit-infrastructure-prod/public-maven</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<servers>
<server>
<id>artifact-registry</id>
<username>oauth2accesstoken</username>
<password>$(gcloud auth print-access-token)</password>
<password>${env.ACCESS_TOKEN}</password>
</server>
</servers>
</settings>" > $HOME/.m2/settings.xml
Expand Down

0 comments on commit 391d48a

Please sign in to comment.