Skip to content

Commit

Permalink
Merge pull request #178 from lorengordon/ci-take2
Browse files Browse the repository at this point in the history
Sets deploy condition in deploy provider
  • Loading branch information
lorengordon authored Apr 19, 2018
2 parents cb3880b + 09fe0d2 commit 845534f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[bumpversion]
current_version = 0.0.0
current_version = 0.0.1
commit = True
message = Bumps version to {new_version}
tag = False
tag_name = {new_version}

7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,8 @@ jobs:
deploy:
provider: script
script: |
aws s3 sync --delete --exclude .git/* $TRAVIS_BUILD_DIR s3://$BUCKET/repos/$REPO || travis_terminate 1
aws s3api list-objects --bucket $BUCKET --query 'Contents[?starts_with(Key, `repos/'"$REPO"'/`)].{Key:Key}' --out text | xargs -n1 -P8 -I {} -t aws s3api put-object-tagging --bucket $BUCKET --tagging "TagSet=[{Key=Version,Value=$TRAVIS_TAG}]" --key {}
aws s3 sync --delete --exclude '.git/*' $TRAVIS_BUILD_DIR s3://$BUCKET/repos/$REPO && \
aws s3api list-objects --bucket $BUCKET --query "Contents[?starts_with(Key, \`repos/$REPO/\`)].{Key:Key}" --out text | xargs -n1 -P8 -I {} -t aws s3api put-object-tagging --bucket $BUCKET --tagging "TagSet=[{Key=Version,Value=$TRAVIS_TAG}]" --key {}
on: # yamllint disable-line rule:truthy
tags: true
repo: $DEPLOY_SLUG

0 comments on commit 845534f

Please sign in to comment.