docs: improve comments

pull/2/head
teutat3s 2022-01-16 22:02:12 +01:00
parent e7afddee14
commit e50b97c1cc
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
2 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,13 @@
#!/usr/bin/env bash
# remove previous build leftovers
rm -rf ./_site
# build, results are in ./_site
lume
# put fonts in place
cp -r ./fonts ./_site/
# clean up
rm -rf ./_site/README

View File

@ -7,13 +7,16 @@ TAG="$1"
if [[ -z "$TAG" ]]; then
echo
echo "Error: please provide a docker image tag as second argument, e.g.:"
echo "Error: please provide a 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
exit 1
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 [ ! -f ~/Downloads/cacert-2021-10-26.pem ]; then
curl https://curl.se/ca/cacert-2021-10-26.pem -o ~/Downloads/cacert-2021-10-26.pem
@ -21,7 +24,7 @@ if [ -z "$CURL_CA_BUNDLE" ]; then
export CURL_CA_BUNDLE=~/Downloads/cacert-2021-10-26.pem
fi
# make sure we're using the local docker host first
# make sure we're using the local docker host for building our image
eval "$(triton env --unset)"
# build the image locally
@ -32,7 +35,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 --profile lev-1-pub.solar env)"
eval "$(triton --account=pub_solar env)"
# use our tag for docker-compose
export DEPLOY_TAG="$TAG"