diff --git a/builds/deploy_catalogue_pipeline.sh b/builds/deploy_catalogue_pipeline.sh index e62fcc8ca6..3471519454 100755 --- a/builds/deploy_catalogue_pipeline.sh +++ b/builds/deploy_catalogue_pipeline.sh @@ -92,7 +92,7 @@ then echo "Deploying λ pipeline services to catalogue-$PIPELINE_DATE" "$ROOT/builds/deploy_lambda_services.sh" \ - r_embed_batcher:batcher \ - r_embed_embedder:relation_embedder + batcher:r_embed_batcher \ + relation_embedder:r_embed_embedder fi diff --git a/builds/deploy_lambda_services.sh b/builds/deploy_lambda_services.sh index 130e6f0d47..713f992d2b 100755 --- a/builds/deploy_lambda_services.sh +++ b/builds/deploy_lambda_services.sh @@ -9,8 +9,12 @@ REPOSITORY_URI="760097843905.dkr.ecr.eu-west-1.amazonaws.com" for FUNCTION_SUFFIX_IMAGE_NAME_PAIR in "$@" do - FUNCTION_SUFFIX="${FUNCTION_SUFFIX_IMAGE_NAME_PAIR%:*}" - IMAGE_NAME="${FUNCTION_SUFFIX_IMAGE_NAME_PAIR#*:}" + # See https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html + # for an explanation of the syntax used here. + # %:* removes the shortest matching pattern of "colon followed by any characters" + # #*: removes the shortest matching pattern of "any characters followed by a colon" + IMAGE_NAME="${FUNCTION_SUFFIX_IMAGE_NAME_PAIR%:*}" + FUNCTION_SUFFIX="${FUNCTION_SUFFIX_IMAGE_NAME_PAIR#*:}" IMAGE_URI="${REPOSITORY_URI}"/uk.ac.wellcome/"${IMAGE_NAME}":"env.${PIPELINE_DATE}" FUNCTION_NAME="${PIPELINE_NAMESPACE}"-"${FUNCTION_SUFFIX}"