Created
June 23, 2016 17:25
-
-
Save bellkev/01d1d15f3871b5df19d10ac14ff1029d to your computer and use it in GitHub Desktop.
Deploy to s3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deployment: | |
# This is a simplified example of deploying to s3 | |
simple: | |
branch: foo | |
commands: | |
- aws s3 sync --delete . s3://mybucket.com | |
# This is what we actually use to deploy our static site | |
advanced: | |
branch: staging | |
commands: | |
- aws s3 sync --delete --exclude "docs/*" ./_staging_site s3://static-staging.circleci.com | |
# Assets have md5s in their filenames, so we don't delete old ones and just let them be cached forever | |
- aws s3 cp s3://static-staging.circleci.com/assets s3://static-staging.circleci.com/assets --recursive --metadata-directive REPLACE --cache-control public,max-age=31536000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment