Skip to content

Commit

Permalink
Merge pull request #1555 from serlo/chore-deployment-workflow
Browse files Browse the repository at this point in the history
chore(ci): fix name of branch from github env
  • Loading branch information
hugotiburtino authored Jun 4, 2024
2 parents 1f16f90 + 4bd3483 commit 1de3412
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ jobs:
credentials_json: '${{ secrets.GCP_KEY_CONTAINER_REGISTRY }}'
- run: gcloud auth configure-docker
- uses: google-github-actions/setup-gcloud@v2
- run: yarn deploy:images:${{ github.ref }}
- run: yarn deploy:images:${{ github.ref_name }}
deploy-image:
runs-on: ubuntu-latest
needs: docker-image
steps:
- if: ${{ github.ref == 'production'}}
- if: ${{ github.ref_name == 'production' }}
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_PRODUCTION_SERVICE_ACCOUNT }}'
- if: ${{ github.ref == 'staging'}}
- if: ${{ github.ref_name == 'staging' }}
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_STAGING_SERVICE_ACCOUNT }}'
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: serlo-${{ github.ref }}-cluster
cluster_name: serlo-${{ github.ref_name }}-cluster
location: europe-west3-a
- run: kubectl delete pod -n api -l app=server
- run: kubectl delete pod -n api -l app=swr-queue-worker

0 comments on commit 1de3412

Please sign in to comment.