-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drone: fix autoscaling group name in notification config
- Loading branch information
Francisco Souza
committed
Jan 2, 2018
1 parent
51ae790
commit bf03fb3
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|