Skip to content

Commit

Permalink
Upload builds to S3 properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mattandrews committed May 29, 2020
1 parent 7baa444 commit 99f7883
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ deploy:
secret_access_key: $AWS_SECRET_ACCESS_KEY
local_dir: cms_deploy
skip_cleanup: true
on:
branch: master
# Upload zip file to S3
# Workaround for Travis treating tags as branch names
# See https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
- provider: s3
region: eu-west-2
bucket: blf-deployments
upload-dir: CMS
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
local_dir: cms_deploy
skip_cleanup: true
on:
tags: true
# Deploy merge commits to the test env
- provider: codedeploy
region: eu-west-2
Expand All @@ -56,6 +71,7 @@ deploy:
application: Craft_CMS
deployment_group: Test_Fleet
on:
branch: master
tags: false
# Deploy new version tags to production
- provider: codedeploy
Expand All @@ -68,4 +84,5 @@ deploy:
application: Craft_CMS
deployment_group: Live_Fleet
on:
branch: master
tags: true

0 comments on commit 99f7883

Please sign in to comment.