Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1.94 KB

README.md

File metadata and controls

48 lines (27 loc) · 1.94 KB

App Engine - GitHub Actions

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.

Workflow

For pushes to the example branch, this workflow will:

  1. Download and configure the Google [Cloud SDK][sdk] with the provided credentials.

  2. Deploy the app to App Engine.

Setup

  1. Create a new Google Cloud Project (or select an existing project).

  2. Initialize your App Engine app with your project.

  3. Create a Google Cloud service account or select an existing one.

  4. 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

  5. [Download a JSON service account key][create-key] for the service account.

  6. 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