From 837cb6343d848a26c0bab1e37da66a4e2e79a28f Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Thu, 26 Apr 2018 07:23:41 +0200 Subject: [PATCH] Deploy build image files to AWS/S3. --- .travis.yml | 12 ++++++++++++ build/deploy.sh | 5 +++++ 2 files changed, 17 insertions(+) create mode 100755 build/deploy.sh diff --git a/.travis.yml b/.travis.yml index cfdb6f01..c8942e2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,17 @@ env: - EMULATOR=sims BASICS=yes install: sh -ex build/dependencies.sh install_${TRAVIS_OS_NAME:-linux} script: make +deploy: + provider: s3 + access_key_id: "$AWS_ID" + secret_access_key: "$AWS_SECRET" + bucket: "$S3_BUCKET" + skip_cleanup: true + local_dir: out + acl: public_read + on: + branch: master +after_deploy: + - build/deploy.sh notifications: email: lars@nocrew.org diff --git a/build/deploy.sh b/build/deploy.sh new file mode 100755 index 00000000..71f52a29 --- /dev/null +++ b/build/deploy.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "Here we can do anything when deployment has finished." +echo "Such as kicking off a second build stage." +exit 0