~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 - sync-repo 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 27pages: 28 stage: build 29 script: 30 - doppler run -- ./bin/deploykit-pages.sh 31 artifacts: 32 paths: 33 # The folder that contains the files to be exposed at the Page URL 34 - public 35 variables: 36 CF_PAGES_PROJECT_NAME: ajhalili2006 37 rules: 38 # This ensures that only pushes to the default branch will trigger 39 # a pages deploy 40 - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH 41.pages:srht: 42 stage: build 43 needs: 44 - pages 45 script: 46 - doppler run -- ./bin/deploykit-gmi.sh 47 rules: 48 - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH 49 50# TODO: Automate this over at mirrors/cronjobs soon. 51sync-branch: 52 stage: sync-repo 53 allow_failure: true 54 script: 55 - | 56 set -x 57 eval $(ssh-agent) 58 ssh-add $PWD/.secretskit/passwordless 59 git push "git@github.com:ajhalili2006/ajhalili2006.github.io" --mirror || true 60 git push "git@git.sr.ht:~ajhalili2006/web" --mirror || true 61 git push "git@codeberg.org:ajhalili2006/website" --mirror || true