Skip to content

Commit

Permalink
ci: config
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Oct 13, 2023
1 parent 23f4ed3 commit 217b15c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/svc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,23 +312,30 @@ jobs:
echo "next version = $NEXT_VERSION"
echo "version=$NEXT_VERSION" >> $GITHUB_OUTPUT
# !!! <L4D AUTH> !!!
- id: 'GCP Auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'

- uses: google-github-actions/setup-gcloud@1bee7de035d65ec5da40a31f8589e240eba8fde5
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
with:
project_id: l4d-e-fire
service_account_key: ${{ secrets.GKE_SA_KEY }}

- run: gcloud --quiet auth configure-docker
- run: |-
gcloud info
gcloud config get-value project
gcloud --quiet auth configure-docker
- uses: google-github-actions/get-gke-credentials@db150f2cc60d1716e61922b832eae71d2a45938f
- uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: l4d-fire
location: us-central1-c
credentials: ${{ secrets.GKE_SA_KEY }}

# !!! </L4D AUTH> !!!


# dependencies
- name: Create k8s dependencies
uses: filipeforattini/ff-iac-github-actions/.github/actions/k8s-install-dependencies@main
Expand Down

0 comments on commit 217b15c

Please sign in to comment.