Skip to content

Commit

Permalink
Added a artifcat auth to retrive secret
Browse files Browse the repository at this point in the history
  • Loading branch information
adityalifi committed Feb 13, 2025
1 parent 92b214c commit e939f29
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ jobs:
- id: gcpauth
uses: google-github-actions/auth@v2
with:
create_credentials_file: 'true'
create_credentials_file: true
token_format: 'access_token'
workload_identity_provider: 'projects/800848389157/locations/global/workloadIdentityPools/github/providers/github'
service_account: 'artifact-deployer-secret@jumper-g-management.iam.gserviceaccount.com'

- name: Login to Artifact Registry
uses: docker/login-action@v3
with:
registry: europe-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.gcpauth.outputs.access_token }}

- name: Enable Secret Manager API
run: |
gcloud services enable secretmanager.googleapis.com --project=jumper-g-management
Expand Down

0 comments on commit e939f29

Please sign in to comment.