~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: quay.io/ajhalili2006/mkdocs-material-build-ci:latest 4 5stages: 6 - test 7 - build 8 9default: 10 tags: 11 - amd64 # currently, we only the image in amd64 right now. 12 # Functions that should be executed before the build script is run 13 before_script: 14 - pipenv install --ignore-pipfile --deploy 15 - npm ci 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 FF_ENABLE_COMMIT_DATA: "true" 22 FF_GENERATE_SOCIAL_CARDS: "true" 23 SECURE_FILES_DOWNLOAD_PATH: .secretskit 24 GIT_DEPTH: "0" 25 26pages: 27 stage: build 28 script: 29 - doppler run -- ./bin/deploykit-pages.sh 30 artifacts: 31 paths: 32 # The folder that contains the files to be exposed at the Page URL 33 - public 34 variables: 35 CF_PAGES_PROJECT_NAME: ajhalili2006 36 rules: 37 # This ensures that only pushes to the default branch will trigger 38 # a pages deploy 39 - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH 40 41# TODO: Automate this over at mirrors/cronjobs soon. 42sync-repo: 43 stage: build 44 allow_failure: true 45 variables: 46 GIT_SSH_COMMAND: "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" 47 script: 48 - | 49 set -x 50 eval $(ssh-agent) 51 chmod 600 $PWD/.secretskit/passwordless && ssh-add $PWD/.secretskit/passwordless 52 git push "git@github.com:ajhalili2006/website" --mirror || true 53 git push "git@git.sr.ht:~ajhalili2006/web" --mirror || true 54 git push "git@codeberg.org:ajhalili2006/website" --mirror || true