~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
1# The Docker image that will be used to build your app
2image:
3 name: "$CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/nixos/nix:latest"
4 entrypoint:
5 - /nix/store/smkzrg2vvp3lng3hq7v9svfni5mnqjh2-bash-interactive-5.2p37/bin/bash
6stages:
7 - test
8 - build
9
10default:
11 before_script:
12 - echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
13 - nix profile remove git-minimal
14 - nix profile install nixpkgs#curl nixpkgs#gitFull nixpkgs#which nixpkgs#ncurses nixpkgs#devenv -vv --show-trace
15 - devenv shell echo "trigger install"
16 - curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
17
18# Global builds and stuff
19variables:
20 #DEBUG: "1" # MAY HORRIBLY LEAK SECRETS, PROCEED WITH CAUTION
21 # feature flags
22 FF_ENABLE_COMMIT_DATA: "true"
23 FF_GENERATE_SOCIAL_CARDS: "true"
24 #FF_GIT_COMMITTERS_API: "true"
25 SECURE_FILES_DOWNLOAD_PATH: .secretskit
26 GIT_DEPTH: "0"
27 # ignore pipfile and rely on the lockfile for deterministic builds
28 PIPENV_IGNORE_PIPFILE: "true"
29 # dotenvx stuff
30 DOTENV_PRIVATE_KEY: $DOTENV_PRIVATE_KEY_CI
31 MKDOCS_GIT_COMMITTERS_PLUGIN_TOKEN: $CI_JOB_TOKEN
32
33pages:
34 stage: build
35 script:
36 - devenv shell doppler run -- npm run deploy:cf
37 artifacts:
38 paths:
39 # The folder that contains the files to be exposed at the Page URL
40 - public
41 variables:
42 # doppler
43 DOPPLER_TOKEN: $DOPPLER_TOKEN
44 rules:
45 # This ensures that only pushes to the default branch will trigger
46 # a pages deploy
47 - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH