From 8581c2b88d9702391d7035c31979f819ef3c506e Mon Sep 17 00:00:00 2001 From: Tair Assimov Date: Wed, 16 Jan 2019 08:35:29 +0100 Subject: [PATCH] Export github env name to use in eb commands --- aws-eb/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aws-eb/entrypoint.sh b/aws-eb/entrypoint.sh index d376473..9dc4a10 100755 --- a/aws-eb/entrypoint.sh +++ b/aws-eb/entrypoint.sh @@ -15,6 +15,9 @@ AWS_CONFIG_FILE=${HOME}/.aws/config +# Set deployment environment name +export GITHUB_ENVIRONMENT_NAME=`cat $GITHUB_EVENT_PATH | ${HOME}/bin/JSON.sh | grep '\["deployment","environment"]' | cut -f2 | sed -e 's/"//g'` + # Set up eb profile mkdir ${HOME}/.aws touch $AWS_CONFIG_FILE