- Lab
- A Cloud Guru
Deploying to Google App Engine with Travis CI
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.
Path Info
Table of Contents
-
Challenge
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:
-
Challenge
Create App and Set Region
- Create an App Engine app on the console. Only the region will need to be selected.
-
Challenge
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:
-
Challenge
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
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.