This repository has been archived by the owner on Apr 21, 2024. It is now read-only.
Update README.md #26
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
# Tech Debt: Create separate GCP dev/prod deploys with auth | |
name: Deploy IMDS Parser to Google Cloud Run | |
on: | |
push: | |
branches: | |
- dev | |
- prod | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- id: "auth" | |
uses: "google-github-actions/auth@v1" | |
with: | |
credentials_json: "${{ secrets.GCP_IMDS_PARSER_SA_KEY }}" | |
- name: Set up Cloud SDK | |
uses: "google-github-actions/setup-gcloud@v1" | |
- name: Deploy to Cloud Run | |
working-directory: cloud/imds_parser | |
run: | | |
gcloud run deploy imdsparser --region us-central1 --source . |