From 3df71bf467ea814dc21d8a39605875b965755174 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Tue, 2 Aug 2016 15:31:18 +0100 Subject: [PATCH] Added all deploy groups --- .travis.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0da6f68e8..7bc7e46a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,15 +41,37 @@ deploy: access_key_id: AKIAJBHLXFS5UHJ6PXLA secret_access_key: *1 bucket: staging-notify.works-notifications-api-codedeploy - key: public-notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip + key: notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip bundle_type: zip application: api deployment_group: notifications_api_deployment_group region: eu-west-1 wait-until-deployed: true on: *2 +- provider: codedeploy + access_key_id: AKIAJBHLXFS5UHJ6PXLA + secret_access_key: *1 + bucket: staging-notify.works-notifications-api-codedeploy + key: notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip + bundle_type: zip + application: api + deployment_group: notifications_admin_api_deployment_group + region: eu-west-1 + wait-until-deployed: true + on: *2 +- provider: codedeploy + access_key_id: AKIAJBHLXFS5UHJ6PXLA + secret_access_key: *1 + bucket: staging-notify.works-notifications-api-codedeploy + key: notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip + bundle_type: zip + application: api + deployment_group: notifications_delivery_api_deployment_group + region: eu-west-1 + wait-until-deployed: true + on: *2 before_deploy: - ./scripts/update_version_file.sh - zip -r --exclude=*__pycache__* notifications-api * - mkdir -p dpl_cd_upload - - mv notifications-api.zip dpl_cd_upload/public-notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip \ No newline at end of file + - mv notifications-api.zip dpl_cd_upload/notifications-api-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-$TRAVIS_COMMIT.zip \ No newline at end of file