From 642cf6b340d1e8067cb0e896725ee42f756dcbc4 Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino Date: Thu, 14 Dec 2023 12:11:38 +0100 Subject: [PATCH] chore(staging): fix use of credentials for gke commenting out other parts just for testing --- .github/workflows/deploy_staging.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy_staging.yml b/.github/workflows/deploy_staging.yml index 56d301281..b3e0cd782 100644 --- a/.github/workflows/deploy_staging.yml +++ b/.github/workflows/deploy_staging.yml @@ -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