Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Publish code
Browse files Browse the repository at this point in the history
  • Loading branch information
denmat committed Nov 30, 2018
1 parent 313866a commit 81cc810
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

deploy_command=("aws" "lambda" "update-function-code")
deploy_command=("aws" "lambda" "update-function-code" "--publish")
aws_s3_copy_command=("aws" "s3" "cp" "--acl" "private")

BUILDKITE_PLUGIN_LAMBDA_DEPLOY_FUNCTION_NAME=${BUILDKITE_PLUGIN_LAMBDA_DEPLOY_FUNCTION_NAME:-''}
Expand Down
8 changes: 4 additions & 4 deletions tests/command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ teardown() {
": echo 'TWpJeU1qSXlNakl5TWpJSwo='"
stub aws \
"s3 cp --acl private --region ap-southeast-2 /plugin/fake/path/myfunc-2323.zip s3://myfuncbucket/deploy_code/production/myfunc-2323.zip : echo 'upload: test.txt to s3://myfuncbucket/deploy_code/production/myfunc-2323.zip'" \
"lambda update-function-code --function-name myfunc --region ap-southeast-2 --s3-bucket myfuncbucket --s3-key deploy_code/production/myfunc-2323.zip : cat tests/lambda_output.json"
"lambda update-function-code --publish --function-name myfunc --region ap-southeast-2 --s3-bucket myfuncbucket --s3-key deploy_code/production/myfunc-2323.zip : cat tests/lambda_output.json"
stub jq \
"'.CodeSha256' : echo 'TWpJeU1qSXlNakl5TWpJSwo='"

Expand All @@ -65,7 +65,7 @@ teardown() {
stub base64 \
": echo 'TWpJeU1qSXlNakl5TWpJSwo='"
stub aws \
"lambda update-function-code --function-name myfunc --region ap-southeast-2 --zip-file fileb:///plugin/fake/path/myfunc-2323.zip : cat tests/lambda_output.json"
"lambda update-function-code --publish --function-name myfunc --region ap-southeast-2 --zip-file fileb:///plugin/fake/path/myfunc-2323.zip : cat tests/lambda_output.json"
stub jq \
"'.CodeSha256' : echo 'TWpJeU1qSXlNakl5TWpJSwo='"

Expand All @@ -90,7 +90,7 @@ teardown() {
stub base64 \
": echo 'TWpJeU1qSXlNakl5TWpJSwo='"
stub aws \
"lambda update-function-code --function-name myfunc --region ap-southeast-2 --zip-file fileb:///plugin/myfunc-2323.zip : cat tests/lambda_output.json"
"lambda update-function-code --publish --function-name myfunc --region ap-southeast-2 --zip-file fileb:///plugin/myfunc-2323.zip : cat tests/lambda_output.json"
stub jq \
"'.CodeSha256' : echo 'TWpJeU1qSXlNakl5TWpJSwo='"

Expand All @@ -115,7 +115,7 @@ teardown() {
": echo 'TWpJeU1qSXlNakl5TWpJSwo='"
stub aws \
"s3 cp --acl private --region ap-southeast-2 /plugin/fake/path/myfunc-2323.zip s3://myfuncbucket/deploy_code/production/myfunc-2323.zip : echo 'upload: test.txt to s3://myfuncbucket/deploy_code/production/myfunc-2323.zip'" \
"lambda update-function-code --function-name myfunc --region ap-southeast-2 --s3-bucket myfuncbucket --s3-key deploy_code/production/myfunc-2323.zip : cat tests/lambda_output.json"
"lambda update-function-code --publish --function-name myfunc --region ap-southeast-2 --s3-bucket myfuncbucket --s3-key deploy_code/production/myfunc-2323.zip : cat tests/lambda_output.json"
stub jq \
"'.CodeSha256' : echo 'NOTAGOODSHA'"

Expand Down

0 comments on commit 81cc810

Please sign in to comment.