Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
neg-loss committed Mar 23, 2024
1 parent 0ac1e69 commit b95993b
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,17 @@ jobs:
exec -l $SHELL
gcloud --version
- name: Authenticate with Google Cloud and install kubectl
uses: GoogleCloudPlatform/github-actions/setup-gcloud@87fba63a27a31ee4fe3f272b924b34215e225a05
with:
service_account_key: ${{ secrets.GKE_SECRET-CPS}}
project_id: data-science-project-418009
export_default_credentials: true
kubeconfig: ${{ runner.workspace }}/kubeconfig
# echo "${{ secrets.GKE_SECRET_CPS }}" | base64 --decode > gcp-sa-key.json
# gcloud auth activate-service-account --key-file=gcp-sa-key.json
# gcloud projects add-iam-policy-binding data-science-project --member=serviceAccount:sample-service-account@data-science-project-418009.iam.gserviceaccount.com --role=roles/storage.objectViewer

# env:
# GOOGLE_APPLICATION_CREDENTIALS: gcp-sa-key.json
- name: Authenticate with Google Cloud
run: |
echo "${{ secrets.GKE_SECRET_CPS }}" | base64 --decode > gcp-sa-key.json
gcloud auth activate-service-account --key-file=gcp-sa-key.json
env:
GOOGLE_APPLICATION_CREDENTIALS: gcp-sa-key.json

- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@main
with:
project_id: neemar
project_id: data-science-project-418009
# service_account_key: ${{ secrets.GKE_SECRET_CPS }}
# export_default_credentials: true

Expand Down

0 comments on commit b95993b

Please sign in to comment.