From c81dee2d11214117fba3e5ce9f65eda6ace5f80f Mon Sep 17 00:00:00 2001 From: Yakir Date: Wed, 25 Nov 2020 11:25:05 +0200 Subject: [PATCH] fixed the version reference --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index e2c1e81..42e777e 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -16,7 +16,7 @@ phases: build: commands: - - if [ -z $VERSION ]; then export VERSION=$CODEBUILD_SOURCE_VERSION; fi + - if [ -z $VERSION ]; then export VERSION=$(echo "$CODEBUILD_WEBHOOK_TRIGGER" | cut -f 2 -d'/'); fi - sed -i "s||$VERSION|g" template.yaml - aws s3 cp $DEPLOYMENT_ASSET_LOCATION sf-deploy.py #Mandatory - python sf-deploy.py # Mandatory