From 37c083f5c9112deed0e9f432342e606f18444212 Mon Sep 17 00:00:00 2001 From: esteinig Date: Fri, 26 Jan 2024 16:07:42 +1100 Subject: [PATCH] ci(stack): fix env var in echo --- scripts/deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 44c7698..26bde33 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -5,6 +5,7 @@ cd $2 # Depending on the environment, deploy the appropriate Docker Compose setup if [ "$1" = "prod" ]; then + # Pull down the production stack docker-compose -f docker-compose.web.yml --profile prod --profile server --project-name prod down @@ -22,6 +23,7 @@ if [ "$1" = "prod" ]; then echo "$date Successfully deployed the production application" >> ~/brick_deploy_action.log elif [ "$1" = "dev" ]; then + # Pull down the development stack docker-compose -f docker-compose.web.yml --profile dev --profile server-dev --project-name dev down @@ -37,5 +39,5 @@ elif [ "$1" = "dev" ]; then else # Deployment script was run with invalid command-line input - echo "$date Failed to run deploy script - `$2` is not a valid option!" >> ~/brick_deploy_action.log + echo "$date Failed to run deploy script - $1 is not a valid option!" >> ~/brick_deploy_action.log fi \ No newline at end of file