Skip to content

Update app-engine-deploy.yml #2

Update app-engine-deploy.yml

Update app-engine-deploy.yml #2

# 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