test-continuous-deployment/deploy/deploy-stack.sh

28 lines
432 B
Bash
Raw Normal View History

2024-06-03 02:24:20 +00:00
#!/usr/bin/env bash
set -e
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
SO_COMMAND=laconic-so
deploy_name="Deploy test stack"
deployment_result=0
test_fail_exit () {
local fail_message=$1
echo "${deploy_name}: ${fail_message}"
echo "${deploy_name}: FAILED"
exit 1
}
log_info () {
local message=$1
echo "$(date +"%Y-%m-%d %T"): ${message}"
}
log_info "Deployment goes here"
exit $deployment_result