From 0c986e8969b08b8493cc037a767d8d4a6fbd94b6 Mon Sep 17 00:00:00 2001 From: Janice Date: Fri, 21 Oct 2022 10:16:22 -0700 Subject: [PATCH] chore: remove here string from tag creation --- internal/pkg/template/templates/cicd/buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/template/templates/cicd/buildspec.yml b/internal/pkg/template/templates/cicd/buildspec.yml index d62e3592b72..ad66c781aae 100644 --- a/internal/pkg/template/templates/cicd/buildspec.yml +++ b/internal/pkg/template/templates/cicd/buildspec.yml @@ -49,7 +49,7 @@ phases: # Check if the `svc package` commanded exited with a non-zero status. If so, echo error msg and exit. - > for env in $pl_envs; do - tag=$(sed 's/:/-/g' <<<"${CODEBUILD_BUILD_ID##*:}-${env}" | rev | cut -c 1-128 | rev) + tag=$(echo ${CODEBUILD_BUILD_ID##*:}-$env | sed 's/:/-/g' | rev | cut -c 1-128 | rev) for svc in $svcs; do ./copilot-linux svc package -n $svc -e $env --output-dir './infrastructure' --tag $tag --upload-assets; if [ $? -ne 0 ]; then