From 9039de4f345f5ed0f6fa158ed2bee8640d7d5ee5 Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino Date: Thu, 14 Dec 2023 12:04:10 +0100 Subject: [PATCH] feat(staging-deploy): delete pod for fetching new image --- .github/workflows/deploy_staging.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_staging.yml b/.github/workflows/deploy_staging.yml index a524da5d8..56d301281 100644 --- a/.github/workflows/deploy_staging.yml +++ b/.github/workflows/deploy_staging.yml @@ -16,4 +16,14 @@ jobs: - run: gcloud auth configure-docker - uses: google-github-actions/setup-gcloud@v2 - run: yarn deploy:images:staging - # TODO: delete pod + deploy-image: + runs-on: ubuntu-latest + needs: docker-image + steps: + - 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