- The GCloud CLI (here).
This repository manages the following files.
dispatch.yaml
maps URLs to App Engine services (documentation).
To modify the mapping one needs to re-deploy the file (see command below).
-
Set GCloud CLI to project :
gcloud config set project PROJECT-ID
-
Authenticate :
gcloud auth login
-
Reauthenticate :
gcloud auth revoke
and thengcloud auth login
-
Deploy dispatch file (:warning: Ensure you set the CLI to the appropriate project !!):
gcloud app deploy dispatch.yaml
-
Create repo on GitHub and push code.
-
Create
cloudbuild.yaml
file with the deploy command inside (see other repos for examples). -
On Google Cloud Build, connect the GitHub repo and create a trigger
a. When connecting the repo you might need to allow GC Build to access Github
b. When creating the trigger, you'll need to specify the Branch.
-
If all worked well, run the trigger, and the service should deploy.
Optional steps to map the App Engine Service to a URL.
-
Add the URL in the AppEngine Settings -> Custom domains tab. You'll need to update the DNS records for the domain (either through Google Domains or gandi.net).
-
Update
dispatch.yaml
carefully and redeploy the dispatch file.