~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: dock.mau.dev/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 FF_ENABLE_COMMIT_DATA: "true"
23 FF_GENERATE_SOCIAL_CARDS: "true"
24 SECURE_FILES_DOWNLOAD_PATH: .secretskit
25 GIT_DEPTH: "0"
26 DOTENV_PRIVATE_KEY: $DOTENV_PRIVATE_KEY_CI
27
28pages:
29 stage: build
30 script:
31 - |
32 source /tmp/.ssh-agent.env
33 bash ./bin/build.sh
34 npm run deploy
35 artifacts:
36 paths:
37 # The folder that contains the files to be exposed at the Page URL
38 - public
39 variables:
40 CF_PAGES_PROJECT_NAME: ajhalili2006
41 rules:
42 # This ensures that only pushes to the default branch will trigger
43 # a pages deploy
44 - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH