mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2025-06-07 13:09:32 +00:00
fix(gitlab-ci): 💚 fix issue relating to container entrypoint stuff
Also in this commit, we improved the build script to use the virtualenv setup we did to isolate dependencies from the rest of the build system. We also did some adjustments on caching deps to speed up the CI. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
3b92600c23
commit
eab9ae94a6
2 changed files with 32 additions and 17 deletions
11
build.sh
11
build.sh
|
@ -1,10 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
set -xe
|
||||
|
||||
TARGET_DIR=${TARGET_DIR:-"$HOME/public_html"}
|
||||
TARGET_DIR=${TARGET_DIR:-"$PWD/public"}
|
||||
FF_OFFLINE_MKDOCS_PLUGIN=${FF_OFFLINE_MKDOCS_PLUGIN:-"false"}
|
||||
FF_ENABLE_COMMIT_DATA=${FF_ENABLE_COMMIT_DATA:-"true"}
|
||||
FF_GENERATE_SOCIAL_CARDS=${FF_GENERATE_SOCIAL_CARDS:-"true"}
|
||||
|
||||
pip3 install -r requirements.txt --user
|
||||
mkdocs build -d $TARGET_DIR
|
||||
if [[ ! -d "$PWD/.venv" ]]; then
|
||||
python3 -m venv $PWD/.venv
|
||||
fi
|
||||
$PWD/.venv/bin/pip3 install -r requirements.txt --upgrade
|
||||
$PWD/.venv/bin/mkdocs build -d $TARGET_DIR
|
||||
|
||||
set +xe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue