Added build numbers to S3 artifacts

This commit is contained in:
Martyn Inglis
2016-01-11 14:48:14 +00:00
parent e1d022ad52
commit e21fbbbb18

View File

@@ -29,7 +29,7 @@ deploy:
access_key_id: AKIAJQPPNM6P6V53SWKA
secret_access_key: *1
bucket: notifications-api-codedeploy
key: notifications-api.zip
key: notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip
bundle_type: zip
application: notifications-api
deployment_group: notifications_api_deployment_group
@@ -38,6 +38,6 @@ deploy:
before_deploy:
- zip -r notifications-api *
- mkdir -p dpl_cd_upload
- mv notifications-api.zip dpl_cd_upload/notifications-api.zip
- mv notifications-api.zip dpl_cd_upload/notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip