diff --git a/.drone.yml b/.drone.yml index f6f1243d..1182eb48 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,11 +62,10 @@ build: - AWS_SECRET_ACCESS_KEY=$$NP_AWS_SECRET_ACCESS_KEY - GITHUB_TOKEN=$$NP_GITHUB_TOKEN - ASG_TOPIC=$$NP_ASG_TOPIC - - COMMIT=$${COMMIT:0:7} commands: - git clone --depth=1 https://$GITHUB_TOKEN@github.com/$INFRA_REPO.git $NP_PATH - go get github.com/${NP_REPO} - - np deploy transcoding-api:prd#$${COMMIT} + - np deploy transcoding-api:prd#$${COMMIT:0:7} - 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