Skip to content

Commit

Permalink
feat: support for no-fail-empty-changeset flag
Browse files Browse the repository at this point in the history
  • Loading branch information
falnyr committed Aug 29, 2020
1 parent 5cdae30 commit 63323dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
* Type: `boolean`
* `USE_JSON` - [Optional]. Whether to use JSON instead of YML as the output template format.
* Type: `boolean`
* `NO_FAIL_EMPTY_CHANGESET` - [Optional]. Whether to fail if there are no changes to the workload.
* Type: `boolean`
* `PARAMETER_OVERRIDES` - [Optional]. Parameters to input in the template.
* Type: `string | list[string]`
* Syntax: `AliasName=prod` `AliasName=prod ApiUrl=https://api.com/api/v1`
Expand Down
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ if [[ $FORCE_UPLOAD == true ]]; then
FORCE_UPLOAD="--force-upload"
fi

if [[ $NO_FAIL_EMPTY_CHANGESET == true ]]; then
NO_FAIL_EMPTY_CHANGESET="--no-fail-on-empty-changeset"
fi

if [[ $USE_JSON == true ]]; then
USE_JSON="--use-json"
fi
Expand Down Expand Up @@ -78,4 +82,4 @@ output = text
region = $AWS_REGION" > ~/.aws/config

aws cloudformation package --template-file $TEMPLATE --output-template-file serverless-output.yaml --s3-bucket $AWS_DEPLOY_BUCKET $AWS_BUCKET_PREFIX $FORCE_UPLOAD $USE_JSON
aws cloudformation deploy --template-file serverless-output.yaml --stack-name $AWS_STACK_NAME $CAPABILITIES $PARAMETER_OVERRIDES $TAGS
aws cloudformation deploy --template-file serverless-output.yaml --stack-name $AWS_STACK_NAME $CAPABILITIES $PARAMETER_OVERRIDES $TAGS $NO_FAIL_EMPTY_CHANGESET

0 comments on commit 63323dc

Please sign in to comment.