Skip to content

Commit

Permalink
Authenticate before setting up SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Sep 14, 2024
1 parent 6dbd586 commit 737d2a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy-streamlit-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ jobs:
uses: actions/checkout@v3

# Step 2: Set up Google Cloud SDK
- name: Authenticate GCP
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}' # GCP service account JSON key

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
with:
version: 'latest'
project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Authenticate
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}' # GCP service account JSON key

# Step 3: Configure Docker to use Artifact Registry
- name: Authenticate Docker to Artifact Registry
run: |
Expand Down

0 comments on commit 737d2a6

Please sign in to comment.