Skip to content

Commit

Permalink
drone: fix autoscaling group name in notification config
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Jan 2, 2018
1 parent 51ae790 commit bf03fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ build:
- np deploy transcoding-api:dev#$${COMMIT:0:7}
- aws autoscaling put-notification-configuration --auto-scaling-group-name transcoding-api-dev-$${COMMIT:0:7}-web --topic-arn ${ASG_TOPIC} --notification-types "autoscaling:EC2_INSTANCE_LAUNCH" "autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
- np deploy transcoding-api:stg#$${COMMIT:0:7}
- aws autoscaling put-notification-configuration --auto-scaling-group-name transcoding-api-stg-$${COMMIT}-web --topic-arn ${ASG_TOPIC} --notification-types "autoscaling:EC2_INSTANCE_LAUNCH" "autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
- aws autoscaling put-notification-configuration --auto-scaling-group-name transcoding-api-stg-$${COMMIT:0:7}-web --topic-arn ${ASG_TOPIC} --notification-types "autoscaling:EC2_INSTANCE_LAUNCH" "autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
when:
branch: master
event: push
Expand All @@ -67,7 +67,7 @@ build:
- git clone --depth=1 https://[email protected]/$INFRA_REPO.git $NP_PATH
- go get github.com/${NP_REPO}
- np deploy transcoding-api:prd#$${COMMIT}
- aws autoscaling put-notification-configuration --auto-scaling-group-name transcoding-api-prd-$${COMMIT}-web --topic-arn ${ASG_TOPIC} --notification-types "autoscaling:EC2_INSTANCE_LAUNCH" "autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
- aws autoscaling put-notification-configuration --auto-scaling-group-name transcoding-api-prd-$${COMMIT:0:7}-web --topic-arn ${ASG_TOPIC} --notification-types "autoscaling:EC2_INSTANCE_LAUNCH" "autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
when:
event: tag
notify:
Expand Down

0 comments on commit bf03fb3

Please sign in to comment.