deploy: improve echo'd output

pull/2/head
teutat3s 2022-01-17 10:51:34 +01:00
parent cea275f8e8
commit db45fe7cf8
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 6 additions and 2 deletions

View File

@ -7,11 +7,11 @@ TAG="$1"
if [[ -z "$TAG" ]]; then
echo
echo "Error: please provide a docker image tag as first argument, e.g.:"
echo "Error: please provide a version as docker image tag as first argument, e.g.:"
echo "./deploy.sh 1.0.0"
echo
echo "You can check the currently deployed tag with"
echo "docker ps -a"
echo 'docker ps --format "{{.Names}}: {{.Image}}"'
echo
exit 1
fi
@ -19,6 +19,10 @@ fi
# workaround for SSL: CERTIFICATE_VERIFY_FAILED error with docker-compose
if [ -z "$CURL_CA_BUNDLE" ]; then
if [ ! -f ~/Downloads/cacert-2021-10-26.pem ]; then
echo
echo "Couldn't find required CURL_CA_BUNDLE env variable..."
echo "Downloading https://curl.se/ca/cacert-2021-10-26.pem to ~/Downloads/cacert-2021-10-26.pem"
echo
curl https://curl.se/ca/cacert-2021-10-26.pem -o ~/Downloads/cacert-2021-10-26.pem
fi
export CURL_CA_BUNDLE=~/Downloads/cacert-2021-10-26.pem