fix: switch from bool to yes/no for kiln build var
This commit is contained in:
parent
c16409dab4
commit
a336f184ff
|
@ -13,7 +13,7 @@ ENV GEMINI_CONTENT_FOLDER content
|
|||
ENV GEMINI_CERT_PATH /certs
|
||||
ENV GEMINI_LANG fr-FR
|
||||
ENV GEMINI_PORT 1965
|
||||
ENV GEMINI_KILN_BUILD false
|
||||
ENV GEMINI_KILN_BUILD no
|
||||
ENV GEMINI_KILN_SRC .
|
||||
|
||||
RUN apk --no-cache add openssl libgcc git kiln
|
||||
|
|
|
@ -9,7 +9,7 @@ This images takes these environment variables:
|
|||
| `GEMINI_DOMAIN` | domain name of the capsule | example.com |
|
||||
| `GEMINI_GIT_REPO` | url of the git repository containing content | `https://gitlab.com/valvin/gemini-agate-image` |
|
||||
| `GEMINI_CONTENT_FOLDER` | folder inside the git repository which contains the content. it means you have `content` folder in your repo with default | `content`|
|
||||
| `GEMINI_KILN_BUILD` | if set to `true` `kiln build` will be execute after an update of the repository | `false` |
|
||||
| `GEMINI_KILN_BUILD` | if set to `yes` `kiln build` will be execute after an update of the repository | `no` |
|
||||
| `GEMINI_KILN_SRC` | used when kiln build is enabled. path inside de git repository where kiln `config.toml` is located | `.` |
|
||||
| `GEMINI_GIT_PATH` | path in which git repository will be cloned | `/app/data` |
|
||||
| `GEMINI_CERT_PATH` | path which contains certificates. this path has to be a volume if not new certs will be generated | `/certs` |
|
||||
|
|
|
@ -24,7 +24,7 @@ update_repository(){
|
|||
}
|
||||
|
||||
prepare_content(){
|
||||
if [ "${GEMINI_KILN_BUILD}" == "true" ]; then
|
||||
if [ "${GEMINI_KILN_BUILD}" == "yes" ]; then
|
||||
if [ "${GEMINI_KILN_SRC}" != "." ]; then
|
||||
echo "Building content in ${GEMINI_GIT_PATH}/${GEMINI_KILN_SRC} with kiln build"
|
||||
cd ${GEMINI_GIT_PATH}/${GEMINI_KILN_SRC}
|
||||
|
@ -40,6 +40,7 @@ prepare_content(){
|
|||
run_agate(){
|
||||
echo "---"
|
||||
echo "* content: ${GEMINI_GTI_PATH}/${GEMINI_CONTENT_FOLDER}"
|
||||
echo "* content build with kiln: ${GEMINI_KILN_BUILD}"
|
||||
echo "* content langage: ${GEMINI_LANG}"
|
||||
echo "* domain: gemini://${GEMINI_DOMAIN}:${GEMINI_PORT} "
|
||||
echo "---"
|
||||
|
|
Loading…
Reference in New Issue