deploy: improve echo'd output
This commit is contained in:
parent
cea275f8e8
commit
db45fe7cf8
|
@ -7,11 +7,11 @@ TAG="$1"
|
||||||
|
|
||||||
if [[ -z "$TAG" ]]; then
|
if [[ -z "$TAG" ]]; then
|
||||||
echo
|
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 "./deploy.sh 1.0.0"
|
||||||
echo
|
echo
|
||||||
echo "You can check the currently deployed tag with"
|
echo "You can check the currently deployed tag with"
|
||||||
echo "docker ps -a"
|
echo 'docker ps --format "{{.Names}}: {{.Image}}"'
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -19,6 +19,10 @@ fi
|
||||||
# workaround for SSL: CERTIFICATE_VERIFY_FAILED error with docker-compose
|
# workaround for SSL: CERTIFICATE_VERIFY_FAILED error with docker-compose
|
||||||
if [ -z "$CURL_CA_BUNDLE" ]; then
|
if [ -z "$CURL_CA_BUNDLE" ]; then
|
||||||
if [ ! -f ~/Downloads/cacert-2021-10-26.pem ]; 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
|
curl https://curl.se/ca/cacert-2021-10-26.pem -o ~/Downloads/cacert-2021-10-26.pem
|
||||||
fi
|
fi
|
||||||
export CURL_CA_BUNDLE=~/Downloads/cacert-2021-10-26.pem
|
export CURL_CA_BUNDLE=~/Downloads/cacert-2021-10-26.pem
|
||||||
|
|
Loading…
Reference in a new issue