Update app-engine-deploy.yml #2
This file contains hidden or 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
# This workflow build and push a Docker container to Google Artifact Registry | |
# and deploy it on Cloud Run when a commit is pushed to the "main" branch. | |
name: 'Build and Deploy to App Engine' | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PROJECT_ID: '${{ secrets.PROJECT_ID }}' | |
REGION: '${{ secrets.REGION }}' | |
SERVICE: '${{ secrets.SERVICE }}' | |
jobs: | |
deploy: | |
runs-on: 'ubuntu-latest' | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v4' | |
- name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.GCP_SA_KEY }}' | |
- name: 'Deploy to App Engine' | |
run: | | |
gcloud app deploy --quiet | |