feat(ci): add workflow and script for pushing staging image #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Staging | |
on: | |
push: | |
branches: | |
- staging | |
jobs: | |
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 | |
# TODO: delete pod |