Skip to content

Commit

Permalink
Fix directory names in cideploy (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
lossyrob authored Aug 16, 2022
1 parent bb4ac9d commit 534b4d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cideploy
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function require_env() {
require_env "IMAGE_TAG"
require_env "ENVIRONMENT"

while [[ "$#" > 0 ]]; do case $1 in
while [[ "$#" -gt 0 ]]; do case $1 in
--dev)
DEV_DEPLOY=1
shift
Expand All @@ -51,13 +51,13 @@ DOCKER_COMPOSE="docker-compose -f deployment/docker-compose.yml"

# Set terraform to deploy to dev or staging
if [ "${DEV_DEPLOY}" = "1" ]; then
TERRAFORM_DIR=/opt/src/terraform/dev
TERRAFORM_DIR=/opt/src/deployment/terraform/dev
else
if [[ "${CI}" != "true" ]]; then
echo "Only CI can deploy to staging!"
exit 1
fi
TERRAFORM_DIR=/opt/src/terraform/${ENVIRONMENT}
TERRAFORM_DIR=/opt/src/deployment/terraform/${ENVIRONMENT}
fi

if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
Expand Down

0 comments on commit 534b4d6

Please sign in to comment.