Skip to content

Commit

Permalink
suppress output
Browse files Browse the repository at this point in the history
Signed-off-by: Francis <[email protected]>
  • Loading branch information
colifran committed Sep 29, 2023
1 parent eec87e0 commit 6f51978
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/publishing/nuget/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@ then
version_id=$(aws s3api put-object \
--bucket ${SIGNING_BUCKET_NAME:-} \
--key unsigned/${file} \
--body ${file} | jq -r '.VersionId' )
--body ${file} | jq -r '.VersionId')
# invoke signer lambda
aws lambda invoke \
--function-name ${SIGNING_LAMBDA_NAME:-} \
--invocation-type RequestResponse \
--cli-binary-format raw-in-base64-out \
--payload '{ "artifactKey": "'"unsigned/${file}"'", "artifactVersion": "'"${version_id}"'" }' \
${tmp}/response.json
${tmp}/response.json >/dev/null
signed_artifact_key=$(cat ${tmp}/response.json | jq -r '.signedArtifactKey')
# download signed zip from signer bucket
aws s3api get-object \
--bucket ${SIGNING_BUCKET_NAME:-} \
--key ${signed_artifact_key} \
nuget-package-signed/artifact.zip
nuget-package-signed/artifact.zip >/dev/null
# clean up temporary directory
rm -rf ${tmp}
done
Expand All @@ -88,20 +88,20 @@ else
version_id=$(aws s3api put-object \
--bucket ${SIGNING_BUCKET_NAME:-} \
--key unsigned/${file} \
--body ${file} | jq -r '.VersionId' )
--body ${file} | jq -r '.VersionId')
# invoke signer lambda
aws lambda invoke \
--function-name ${SIGNING_LAMBDA_NAME:-} \
--invocation-type RequestResponse \
--cli-binary-format raw-in-base64-out \
--payload '{ "artifactKey": "'"unsigned/${file}"'", "artifactVersion": "'"${version_id}"'" }' \
${tmp}/response.json
${tmp}/response.json >/dev/null
signed_artifact_key=$(cat ${tmp}/response.json | jq -r '.signedArtifactKey')
# download signed dll from signer bucket
aws s3api get-object \
--bucket ${SIGNING_BUCKET_NAME:-} \
--key ${signed_artifact_key} \
${tmp}/${file}
${tmp}/${file} >/dev/null
# replace the dll in the nuget package
(
cd ${tmp}
Expand Down

0 comments on commit 6f51978

Please sign in to comment.