Skip to content

Commit 22c2513

Browse files
committed
Finish the extra vars file implementation
1 parent 1627730 commit 22c2513

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

operations/_scripts/deploy/deploy.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,7 @@ if [ "$STACK_DESTROY" == "true" ]; then
3838
export BITOPS_ANSIBLE_SKIP_DEPLOY="true"
3939
fi
4040

41-
if [[ "$GHA_TESTING" == "true" ]]; then
42-
echo "Quitting before BitOps invoke"
43-
exit 1
44-
fi
45-
46-
set -x
47-
48-
# Ansible Extra vars file to override the default StackStorm configuration
41+
# 'st2_ansible_extra_vars_file' to override the default StackStorm configuration
4942
if [[ -n $ST2_ANSIBLE_EXTRA_VARS_FILE ]]; then
5043
if [[ ! -f $GITHUB_WORKSPACE/$ST2_ANSIBLE_EXTRA_VARS_FILE ]]; then
5144
echo "Configuration error:"
@@ -58,6 +51,11 @@ if [[ -n $ST2_ANSIBLE_EXTRA_VARS_FILE ]]; then
5851
export BITOPS_ANSIBLE_EXTRA_VARS="@$(basename $ST2_ANSIBLE_EXTRA_VARS_FILE)"
5952
fi
6053

54+
if [[ "$GHA_TESTING" == "true" ]]; then
55+
echo "Quitting before BitOps invoke"
56+
exit 1
57+
fi
58+
6159
# Bypass all the 'BITOPS_' ENV vars to docker
6260
DOCKER_EXTRA_ARGS=""
6361
for i in $(env | grep BITOPS_); do

0 commit comments

Comments
 (0)