Travis CI doesn’t just let us automate the testing and release of our code — it can even deploy our code to production (or wherever you need to deploy). In this lab, we’ll take an existing Travis setup and add a deployment stanza to get our application working on Google App Engine, as well as configure GCP to work with Travis.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Enable Needed APIs
- Enable 2 APIs on the Google Cloud Console:
- App Engine Admin API
- Cloud Build API.
- Enable 2 APIs on the Google Cloud Console:
- Create App and Set Region
- Create an App Engine app on the console. Only the region will need to be selected.
- Create Service Role
- Create a service role with the following permissions:
- App Engine Admin
- Cloud Storage Admin
- Cloud Build Editor
(NOTE: Be sure to create and download the associated JSON key.)
- Create a service role with the following permissions:
- Add Deploy Stanza and Deploy
- Open the
.travis.yml
file and create adeploy
stanza using an encrypted version of the JSON key and the project ID. - Commit code.
- Open the