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 it to be deployed). In this lab, we’ll take an existing Travis setup and add a stanza to deploy it to a provided Amazon S3 bucket.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create the Bucket
- Log in to the AWS Console and create a public bucket with web hosting enabled.
- Encrypt Your Keys
Create an AWS access key.
Using the Travis client, encrypt your AWS access key and secret key.
- Add the Deploy
- Add the
deploy
stanza to the.travis.yml
file, then push the changes and watch the deploy.
- Add the