Skip to content

Commit

Permalink
Debug/develop deployment failures (#2743)
Browse files Browse the repository at this point in the history
* Update cloudgov.py

* hijack develop workflow to test deployments.

* syntax typo.

* I can't believe this typo.

* linting whitespace

* removed extra space

* Adding in staging jwt_key due to recent deployment failure.

* Removing self-reference branch filter for mergability

* Updated elif logic based on CI failures

---------

Co-authored-by: andrew-jameson <[email protected]>
Co-authored-by: George Hudson <[email protected]>
  • Loading branch information
3 people authored Nov 3, 2023
1 parent d6784ad commit 96452dc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/deploy-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ set_cf_envs()
cf_cmd="cf unset-env $CGAPPNAME_BACKEND $var_name ${!var_name}"
$cf_cmd
continue
elif [[ ("$var_name" =~ "STAGING_*") && ("$CF_SPACE" = "tanf-staging") ]]; then
var_name=$(echo "$var_name" | sed -e 's@STAGING_@@g')
elif [[ ("$var_name" =~ "STAGING_") && ("$CF_SPACE" = "tanf-staging") ]]; then
sed_var_name=$(echo "$var_name" | sed -e 's@STAGING_@@g')
cf_cmd="cf set-env $CGAPPNAME_BACKEND $sed_var_name ${!var_name}"
else
cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}"
fi

cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}"

echo "Setting var : $var_name"
$cf_cmd
done
Expand Down

0 comments on commit 96452dc

Please sign in to comment.