Skip to content

Commit

Permalink
Add exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed May 8, 2024
1 parent 0fb6971 commit d05fb43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test-infrastructure/build-and-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -vx;
BASE_IMAGE_NAME=govtool
export BASE_IMAGE_NAME=govtool
export GOVTOOL_TAG="$(git rev-parse HEAD)"
export PROJECT_NAME=govtool
export CARDANO_NETWORK=sanchonet
Expand Down
2 changes: 1 addition & 1 deletion tests/test-infrastructure/build-images.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
export BASE_IMAGE_NAME="govtool"
BASE_IMAGE_EXISTS=$(docker images -q "$BASE_IMAGE_NAME"/backend-base 2> /dev/null)
Expand Down
5 changes: 3 additions & 2 deletions tests/test-infrastructure/scripts/deploy-stack.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## Docker swarm doesn't read .env file.
## This script reads env file and variables
## and apply them to compose file and
Expand Down Expand Up @@ -47,7 +47,8 @@ function check_env(){
for key in "${unset_keys[@]}"; do
echo "- $key"
done
exit 1
echo " Exiting due to missing env variables"
exit 2
fi
}
function deploy-stack(){
Expand Down

0 comments on commit d05fb43

Please sign in to comment.