From 0453bf85a68c9783212a26a9927c5d57db140cf4 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Thu, 3 Mar 2016 14:39:06 +0000 Subject: [PATCH] Conditional builds --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ad9606317..27bbdd454 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,8 @@ deploy: local_dir: dpl_cd_upload skip_cleanup: true region: eu-west-1 - on: &2 + on: + branch: staging repo: alphagov/notifications-api bucket: notifications-api-codedeploy - provider: codedeploy @@ -38,7 +39,7 @@ deploy: application: notifications-api deployment_group: notifications_api_deployment_group region: eu-west-1 - on: *2 + on: branch: staging - provider: codedeploy access_key_id: AKIAJQPPNM6P6V53SWKA @@ -49,7 +50,7 @@ deploy: application: notifications-api deployment_group: notifications-api-celery region: eu-west-1 - on: *2 + on: branch: staging before_deploy: - ./scripts/update_version_file.sh