Skip to content

Commit

Permalink
Artifact Registry key and updated settings.xml file
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-bandihareesh committed Oct 4, 2024
1 parent bfdfa67 commit 2d56217
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/vertx-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
with:
fetch-depth: 0

- name: Set up Google Cloud credentials
run: echo "${{ secrets.ARTIFACT_REGISTRY_KEY }}" > $HOME/gcloud-key.json
- name: Decode and Set up Google Cloud credentials
run: echo "${{ secrets.ARTIFACT_REGISTRY_KEY }}" | base64 -d > $HOME/gcloud-key.json

- name: Authenticate to Google Cloud
run: |
Expand Down Expand Up @@ -57,8 +57,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Google Cloud credentials
run: echo "${{ secrets.ARTIFACT_REGISTRY_KEY }}" > $HOME/gcloud-key.json
- name: Decode and Set up Google Cloud credentials
run: echo "${{ secrets.ARTIFACT_REGISTRY_KEY }}" | base64 -d > $HOME/gcloud-key.json

- name: Authenticate to Google Cloud
run: |
Expand Down
15 changes: 14 additions & 1 deletion travis/new-settings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>artifact-registry</id>
Expand All @@ -22,6 +23,18 @@
</put>
</httpConfiguration>
</configuration>
<username>_json_key_base64</username>
<password>${env.ARTIFACT_REGISTRY_KEY}</password>
</server>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USERNAME}</username>
<password>${env.OSSRH_PASSWORD}</password>
</server>
<server>
<id>github.com</id>
<username>${env.GITHUB_USERNAME}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>

0 comments on commit 2d56217

Please sign in to comment.