Update deploy helper script
This commit is contained in:
parent
afdae7dff0
commit
6486423e37
10
deploy.sh
10
deploy.sh
|
@ -18,14 +18,14 @@ 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-2022-03-29.pem ]; then
|
||||||
echo
|
echo
|
||||||
echo "Couldn't find required CURL_CA_BUNDLE env variable..."
|
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
|
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
|
fi
|
||||||
export CURL_CA_BUNDLE=~/Downloads/cacert-2021-10-26.pem
|
export CURL_CA_BUNDLE=~/Downloads/cacert-2022-03-29.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make sure we're using the local docker host for building our image
|
# 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"
|
docker push hub.greenbaum.cloud/miom.space:"$TAG"
|
||||||
|
|
||||||
# change DOCKER_HOST env var to remote docker host (Greenbaum's docker API)
|
# 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
|
# use our tag for docker-compose
|
||||||
export DEPLOY_TAG="$TAG"
|
export DEPLOY_TAG="$TAG"
|
||||||
|
|
Loading…
Reference in a new issue