mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-28 11:13:40 +00:00
Set GIT_DEPTH to 0 for git-revision-date-localized-plugin
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
9d33d6d969
commit
f1de11791e
3 changed files with 5 additions and 3 deletions
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -110,7 +110,7 @@ jobs:
|
||||||
|
|
||||||
# Workaround: https://github.com/docker/build-push-action/issues/461
|
# Workaround: https://github.com/docker/build-push-action/issues/461
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@
|
uses: docker/setup-buildx-action@v2
|
||||||
with:
|
with:
|
||||||
buildkitd-flags: --debug
|
buildkitd-flags: --debug
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ variables:
|
||||||
FF_ENABLE_COMMIT_DATA: "true"
|
FF_ENABLE_COMMIT_DATA: "true"
|
||||||
FF_GENERATE_SOCIAL_CARDS: "true"
|
FF_GENERATE_SOCIAL_CARDS: "true"
|
||||||
SECURE_FILES_DOWNLOAD_PATH: /run/secrets
|
SECURE_FILES_DOWNLOAD_PATH: /run/secrets
|
||||||
|
GIT_DEPTH: "0"
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
|
@ -9,13 +9,14 @@ FF_GENERATE_SOCIAL_CARDS=${FF_GENERATE_SOCIAL_CARDS:-"true"}
|
||||||
if [[ ! -d "$PWD/.venv" && $SKIP_VENV_SETUP == "" ]]; then
|
if [[ ! -d "$PWD/.venv" && $SKIP_VENV_SETUP == "" ]]; then
|
||||||
python3 -m venv $PWD/.venv
|
python3 -m venv $PWD/.venv
|
||||||
$PWD/.venv/bin/pip3 install -r requirements.txt --upgrade
|
$PWD/.venv/bin/pip3 install -r requirements.txt --upgrade
|
||||||
$PWD/.venv/bin/mkdocs build -d $TARGET_DIR
|
$PWD/.venv/bin/mkdocs build -d "$TARGET_DIR"
|
||||||
else
|
else
|
||||||
pip3 install -r requirements.txt --upgrade
|
pip3 install -r requirements.txt --upgrade
|
||||||
mkdocs build -d $TARGET_DIR
|
mkdocs build -d "$TARGET_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir "$TARGET_DIR/api"
|
mkdir "$TARGET_DIR/api"
|
||||||
git rev-parse HEAD > "$TARGET_DIR/api/commit"
|
git rev-parse HEAD > "$TARGET_DIR/api/commit"
|
||||||
|
cp "$TARGET_DIR/assets/images/favicon.png" "$TARGET_DIR/favicon.ico"
|
||||||
|
|
||||||
set +xe
|
set +xe
|
||||||
|
|
Loading…
Reference in a new issue