Skip to content

Commit

Permalink
chore(staging): fix use of credentials for gke
Browse files Browse the repository at this point in the history
commenting out other parts just for testing
  • Loading branch information
hugotiburtino committed Dec 14, 2023
1 parent 9039de4 commit 642cf6b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ on:
- staging

jobs:
docker-image:
# docker-image:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: serlo/configure-repositories/actions/setup-node@main
# - uses: google-github-actions/auth@v2
# with:
# credentials_json: '${{ secrets.GCP_KEY_CONTAINER_REGISTRY }}'
# - run: gcloud auth configure-docker
# - uses: google-github-actions/setup-gcloud@v2
# - run: yarn deploy:images:staging
deploy-image:
runs-on: ubuntu-latest
# needs: docker-image
steps:
- uses: actions/checkout@v4
- uses: serlo/configure-repositories/actions/setup-node@main
- uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_KEY_CONTAINER_REGISTRY }}'
- run: gcloud auth configure-docker
- uses: google-github-actions/setup-gcloud@v2
- run: yarn deploy:images:staging
deploy-image:
runs-on: ubuntu-latest
needs: docker-image
steps:
credentials_json: '${{ secrets.GCP_STAGING_SERVICE_ACCOUNT }}'
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: serlo-staging-cluster
location: europe-west3-a
credentials: ${{ secrets.GCP_STAGING_SERVICE_ACCOUNT }}
- run: kubectl delete pod -l app=server
- run: kubectl delete pod -l app=swr-queue-worker

0 comments on commit 642cf6b

Please sign in to comment.