~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: ghcr.io/andreijiroh-dev/docker-images/mkdocs-material:latest
4 entrypoint: ["/bin/bash", "-l", "-c"] # https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2109#note_47480476
5
6stages:
7 - test
8 - build
9
10default:
11 tags:
12 - amd64 # currently, we only the image in amd64 right now.
13 # Functions that should be executed before the build script is run
14 before_script:
15 - pipenv install --ignore-pipfile --deploy
16 - npm ci
17 - curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
18
19# Global builds and stuff
20variables:
21 #DEBUG: "1" # MAY HORRIBLY LEAK SECRETS, PROCEED WITH CAUTION
22 # feature flags
23 FF_ENABLE_COMMIT_DATA: "true"
24 FF_GENERATE_SOCIAL_CARDS: "true"
25 #FF_GIT_COMMITTERS_API: "true"
26 SECURE_FILES_DOWNLOAD_PATH: .secretskit
27 GIT_DEPTH: "0"
28 # dotenvx stuff
29 DOTENV_PRIVATE_KEY: $DOTENV_PRIVATE_KEY_CI
30 MKDOCS_GIT_COMMITTERS_PLUGIN_TOKEN: $CI_JOB_TOKEN
31
32pages:
33 stage: build
34 script:
35 - bash ./bin/build.sh
36 - doppler run -- npm run deploy
37 artifacts:
38 paths:
39 # The folder that contains the files to be exposed at the Page URL
40 - public
41 variables:
42 CF_PAGES_PROJECT_NAME: ajhalili2006
43 # doppler
44 DOPPLER_TOKEN: $DOPPLER_TOKEN
45 rules:
46 # This ensures that only pushes to the default branch will trigger
47 # a pages deploy
48 - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH