Skip to content

feat: Signing job should run as one-shot or loop over layers #432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scripts/sign_layers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ if [ "$1" = "prod" ]; then
S3_BUCKET_NAME="dd-lambda-signing-bucket"
fi

if [ -z "$LAYER_FILE" ]; then
echo "Layer file not specified, running for all layer files."
else
echo "Layer file is specified: $LAYER_FILE"
if (printf '%s\n' "${LAYER_FILES[@]}" | grep -xq $LAYER_FILE); then
LAYER_FILES=($LAYER_FILE)
else
echo "Unsupported layer found, valid options are : ${LAYER_FILES[@]}"
exit 1
fi
fi

for LAYER_FILE in "${LAYER_FILES[@]}"
do
echo
Expand Down