Update deploy helper script

pull/2/head
teutat3s 2022-03-31 19:11:07 +02:00
parent afdae7dff0
commit 6486423e37
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 5 additions and 5 deletions

View File

@ -18,14 +18,14 @@ 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
if [ ! -f ~/Downloads/cacert-2022-03-29.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 "Downloading https://curl.se/ca/cacert-2022-03-29.pem to ~/Downloads/cacert-2022-03-29.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-2022-03-29.pem -o ~/Downloads/cacert-2022-03-29.pem
fi
export CURL_CA_BUNDLE=~/Downloads/cacert-2021-10-26.pem
export CURL_CA_BUNDLE=~/Downloads/cacert-2022-03-29.pem
fi
# make sure we're using the local docker host for building our image
@ -39,7 +39,7 @@ docker login hub.greenbaum.cloud
docker push hub.greenbaum.cloud/miom.space:"$TAG"
# change DOCKER_HOST env var to remote docker host (Greenbaum's docker API)
eval "$(triton --account=pub_solar env)"
eval "$(triton --account=lev-1-pub_solar env)"
# use our tag for docker-compose
export DEPLOY_TAG="$TAG"