An example workflow that uses the setup-gcloud
action to deploy to App Engine.
Checkout the deploy-appengine
action and example workflows
for a specialized implementation.
This code is intended to be an example. You will likely need to change or update values to match your setup.
For pushes to the example
branch, this workflow will:
-
Download and configure the Google [Cloud SDK][sdk] with the provided credentials.
-
Deploy the app to App Engine.
-
Create a new Google Cloud Project (or select an existing project).
-
Create a Google Cloud service account or select an existing one.
-
Add the following Cloud IAM roles to your service account:
-
App Engine Admin
- allows for the creation of new App Engine apps -
Service Account User
- required to deploy to App Engine as service account -
Storage Admin
- allows upload of source code -
Cloud Build Editor
- allows building of source code
-
-
[Download a JSON service account key][create-key] for the service account.
-
Add the following [secrets to your repository's secrets][gh-secret]:
-
GCP_PROJECT
: Google Cloud project ID -
GCP_SA_KEY
: the downloaded service account key
-