-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (42 loc) · 1.4 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# The Docker image that will be used to build your app
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, we only the image in amd64 right now.
# Functions that should be executed before the build script is run
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
# Global builds and stuff
variables:
#DEBUG: "1" # MAY HORRIBLY LEAK SECRETS, PROCEED WITH CAUTION
# feature flags
FF_ENABLE_COMMIT_DATA: "true"
FF_GENERATE_SOCIAL_CARDS: "true"
#FF_GIT_COMMITTERS_API: "true"
SECURE_FILES_DOWNLOAD_PATH: .secretskit
GIT_DEPTH: "0"
# dotenvx stuff
DOTENV_PRIVATE_KEY: $DOTENV_PRIVATE_KEY_CI
MKDOCS_GIT_COMMITTERS_PLUGIN_TOKEN: $CI_JOB_TOKEN
pages:
stage: build
script:
- bash ./bin/build.sh
- npm run deploy
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
variables:
CF_PAGES_PROJECT_NAME: ajhalili2006
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH