Automated CI/CD Deployment to App Engine with Cloud Build

Prerequisites

  • A Git repository with your source code. Learn more about Git workflow.
  • A Google Cloud account with billing activated.
  • App Engine application created.

Setup Source Repository in Google Cloud

Configure Cloud Build for Automated Deployment

Configure Cloud Build and App YAML files

steps:
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'bash'
args: ['-c', 'gcloud config set app/cloud_build_timeout 1600 && gcloud app deploy']
timeout: '1600s'
runtime: nodejs12handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(www/.*)$
static_files: www/\1.html
upload: www/.*\.html$

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
CloudBooklet

CloudBooklet

Installation and Set Up of Web Applications on Google Cloud