-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(gitlab-ci): 👷 add GitLab CI for automated deploys to CF Pages
Alongside some redirects update Signed-off-by: Andrei Jiroh Halili (RecapTime.dev) <[email protected]>
- Loading branch information
1 parent
43e7876
commit 9144579
Showing
5 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -270,6 +270,7 @@ venv.bak/ | |
|
||
# mkdocs documentation | ||
site | ||
public | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include: | ||
- local: .gitlab/ci/*.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
# 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 | ||
/go/coc https://policies.recaptime.dev/code-of-conduct |