~ajhalili2006's personal website, built with Zensical (successor of Material for Mkdocs) [old repo name got bugged while attempting to do manual knot migration via repo deletion] andreijiroh.dev
zensical mkdocs-material website

build: uncomment copying well-known files to public folder

Also tweak the CI configs a bit on both GitLab CI and Tangled Spindle.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

andreijiroh.dev 21fa52e9 ff3679ca

verified
Changed files
+10 -4
.tangled
workflows
bin
+3 -1
.gitlab-ci.yml
···
image:
name: "$CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/nixos/nix:latest"
entrypoint:
-
- /root/.nix-profile/bin/bash
+
- /nix/store/smkzrg2vvp3lng3hq7v9svfni5mnqjh2-bash-interactive-5.2p37/bin/bash
stages:
- test
- build
···
#FF_GIT_COMMITTERS_API: "true"
SECURE_FILES_DOWNLOAD_PATH: .secretskit
GIT_DEPTH: "0"
+
# ignore pipfile and rely on the lockfile for deterministic builds
+
PIPENV_IGNORE_PIPFILE: "true"
# dotenvx stuff
DOTENV_PRIVATE_KEY: $DOTENV_PRIVATE_KEY_CI
MKDOCS_GIT_COMMITTERS_PLUGIN_TOKEN: $CI_JOB_TOKEN
+6 -2
.tangled/workflows/site-deploy.yml
···
engine: nixery
clone:
-
depth: 0
+
depth: 500
submodules: true
# sync this with devenv.nix + devenv.yaml (if applicable for additional flakes
···
steps:
- name: Install deps
command: |
-
pipenv install
+
pipenv install --deploy --ignore-pipfile
npm ci
environment:
PIPENV_IGNORE_PIPFILE: "true"
+
# We configured our wrangler.toml to use our build script (at ../../bin/build.sh)
+
# for building the site and doing post-build prep (like copying well-known files
+
# and such). To minimize admin overhead on secrets management, we use `doppler run`
+
# to inject secrets from Doppler into the environment for the build and deploy steps.
- name: Deploy to Cloudflare Workers (as Static Site)
command: doppler run -- npm run deploy:cf
+1 -1
bin/build.sh
···
TARGET_DIR="${PWD}/public"
pipenv run build
cp "$TARGET_DIR/assets/images/favicon.png" "$TARGET_DIR/favicon.ico" -v
-
#cp "$SOURCE_DIR/.well-known" "$TARGET_DIR/" -rv
+
cp "$SOURCE_DIR/.well-known" "$TARGET_DIR/" -rv