@@ -84,7 +84,7 @@ if [ -z "$WERCKER_AWS_CODE_DEPLOY_S3_BUCKET" ]; then
84
84
fi
85
85
86
86
# ----- Install AWS Cli -----
87
- # see documentation : http://docs.aws.amazon.com/cli/latest/userguide/installing.html
87
+ # see documentation http://docs.aws.amazon.com/cli/latest/userguide/installing.html
88
88
# ---------------------------
89
89
90
90
# Check AWS is installed
@@ -99,7 +99,7 @@ if ! type_exists 'aws'; then
99
99
fi
100
100
101
101
# ----- Configure -----
102
- # see documentation :
102
+ # see documentation
103
103
# http://docs.aws.amazon.com/cli/latest/reference/configure/index.html
104
104
# ----------------------
105
105
set -e
123
123
set +e
124
124
125
125
# ----- Application -----
126
- # see documentation :
126
+ # see documentation
127
127
# http://docs.aws.amazon.com/cli/latest/reference/deploy/get-application.html
128
128
# http://docs.aws.amazon.com/cli/latest/reference/deploy/create-application.html
129
129
# ----------------------
@@ -141,7 +141,7 @@ APPLICATION_EXISTS_OUTPUT=$($APPLICATION_EXISTS 2>&1)
141
141
142
142
if [ $? -ne 0 ]; then
143
143
warn " $APPLICATION_EXISTS_OUTPUT "
144
- h2 " Creating application '$APPLICATION_NAME ' : "
144
+ h2 " Creating application '$APPLICATION_NAME '"
145
145
146
146
# Create application
147
147
APPLICATION_CREATE=" aws deploy create-application --application-name $APPLICATION_NAME "
160
160
161
161
162
162
# ----- Deployment config (optional) -----
163
- # see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
163
+ # see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
164
164
# ----------------------
165
165
DEPLOYMENT_CONFIG_NAME=${WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_CONFIG_NAME:- CodeDeployDefault.OneAtATime}
166
166
MINIMUM_HEALTHY_HOSTS=${WERCKER_AWS_CODE_DEPLOY_MINIMUM_HEALTHY_HOSTS:- type=FLEET_PERCENT,value=75}
194
194
195
195
196
196
# ----- Deployment group -----
197
- # see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
197
+ # see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
198
198
# ----------------------
199
199
# Deployment group variables
200
200
DEPLOYMENT_GROUP=${WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_GROUP_NAME:- $WERCKER_DEPLOYTARGET_NAME }
241
241
242
242
243
243
# ----- Push a revision to S3 -----
244
- # see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/push.html
244
+ # see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/push.html
245
245
# ----------------------
246
246
REVISION=${WERCKER_AWS_CODE_DEPLOY_REVISION:- $APPLICATION_NAME -$APPLICATION_VERSION .zip}
247
247
REVISION_DESCRIPTION=" $WERCKER_AWS_CODE_DEPLOY_REVISION_DESCRIPTION "
@@ -275,7 +275,7 @@ success "Pushing revision '$REVISION' to S3 succeeded"
275
275
276
276
277
277
# ----- Register revision -----
278
- # see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/register-application-revision.html
278
+ # see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/register-application-revision.html
279
279
# ----------------------
280
280
h1 " Step 6: Registering revision"
281
281
@@ -307,7 +307,7 @@ success "Registering revision '$REVISION' succeeded"
307
307
308
308
309
309
# ----- Deployment -----
310
- # see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html
310
+ # see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html
311
311
# ----------------------
312
312
DEPLOYMENT_DESCRIPTION=" $WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_DESCRIPTION "
313
313
DEPLOYMENT_OVERVIEW=${WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_OVERVIEW:- true}
@@ -328,7 +328,7 @@ if [ $? -ne 0 ]; then
328
328
fi
329
329
330
330
DEPLOYMENT_ID=$( echo $DEPLOYMENT_OUTPUT | jsonValue ' deploymentId' | tr -d ' ' )
331
- note " You can follow your deployment at : https://console.aws.amazon.com/codedeploy/home#/deployments/$DEPLOYMENT_ID "
331
+ note " You can follow your deployment at: https://console.aws.amazon.com/codedeploy/home#/deployments/$DEPLOYMENT_ID "
332
332
333
333
if [ ' true' = " $DEPLOYMENT_OVERVIEW " ]; then
334
334
h1 " Deployment Overview"
@@ -363,7 +363,7 @@ if [ 'true' = "$DEPLOYMENT_OVERVIEW" ]; then
363
363
SKIPPED=$( cat /tmp/$DEPLOYMENT_ID | jsonValue ' Skipped' | tr -d ' \r\n' | tr -d ' ' )
364
364
SUCCEEDED=$( cat /tmp/$DEPLOYMENT_ID | jsonValue ' Succeeded' | tr -d ' \r\n' | tr -d ' ' )
365
365
FAILED=$( cat /tmp/$DEPLOYMENT_ID | jsonValue ' Failed' | tr -d ' \r\n' | tr -d ' ' )
366
- echo " | In Progress: $IN_PROGRESS | Pending : $PENDING | Skipped : $SKIPPED | Succeeded : $SUCCEEDED | Failed : $FAILED |"
366
+ echo " | In Progress: $IN_PROGRESS | Pending: $PENDING | Skipped: $SKIPPED | Succeeded: $SUCCEEDED | Failed: $FAILED |"
367
367
368
368
# Deployment succeeded
369
369
if [ " $STATUS " = ' Succeeded' ]; then
0 commit comments