Skip to content
Snippets Groups Projects
Unverified Commit 9144579a authored by Andrei Jiroh Halili (RecapTime.dev)'s avatar Andrei Jiroh Halili (RecapTime.dev)
Browse files

ci(gitlab-ci): :construction_worker: add GitLab CI for automated deploys to CF Pages


Alongside some redirects update

Signed-off-by: default avatarAndrei Jiroh Halili (RecapTime.dev) <ajhalili2006@crew.recaptime.dev>
parent 43e78761
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,7 @@ venv.bak/
# mkdocs documentation
site
public
# mypy
.mypy_cache/
......
include:
- local: .gitlab/ci/*.yml
\ No newline at end of file
image:
name: dock.mau.dev/andreijiroh-dev/docker-images/mkdocs-material:latest
entrypoint: ["/bin/bash", "-l", "-c"] # https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2109#note_47480476
stages:
- test
- build
default:
tags:
- amd64 # Currently the CI image only available on amd64 for now
before_script:
- pipenv install --ignore-pipfile --deploy
- npm ci
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
pages:
script:
- pipenv run build
- doppler run -- npm run deploy:prod
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
\ No newline at end of file
# mediawiki compat redirects
/wiki/Main_Page /
/wiki/Handbook:Contents /handbook
/wiki/User:* https://profiles.loreooks.eu.org/:splat
/wiki/Portal:Contact_Squad https://recaptime.eu.org/contact
/wiki/User:* /profiles/:splat
/wiki/Portal:Contact_Squad https://recaptime.dev/contact
# aliases
/projects/lorebooks.wiki /projects/lorebooks-wiki
# keybase proofs
/keybase.txt /.well-known/keybase.txt
/security.txt https://recaptime.eu.org/.well-known/security.txt
/.well-known/security.txt https://recaptime.eu.org/.well-known/security.txt
/security.txt https://recaptime.dev/.well-known/security.txt
/.well-known/security.txt https://recaptime.dev/.well-known/security.txt
# quick golinks
/go/internal-handbook /handbook/handbook-usage#internal-handbook
/go/onboarding /handbook/company/general-onboarding.md
/go/coc https://policies.recaptime.eu.org/coc
\ No newline at end of file
/go/coc https://policies.recaptime.dev/code-of-conduct
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment