2023-07-13 18:13:07 +00:00
|
|
|
# The Docker image that will be used to build your app
|
|
|
|
image: quay.io/ajhalili2006/mkdocs-material-build-ci
|
|
|
|
|
|
|
|
# Functions that should be executed before the build script is run
|
|
|
|
before_script:
|
|
|
|
- pip3 install -r requirements.txt
|
|
|
|
- npm ci
|
|
|
|
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
|
|
|
|
- (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sh
|
2023-03-24 18:26:22 +00:00
|
|
|
|
2023-03-27 15:29:38 +00:00
|
|
|
variables:
|
2023-03-31 16:24:07 +00:00
|
|
|
DEBUG: "1"
|
2023-03-27 15:29:38 +00:00
|
|
|
FF_ENABLE_COMMIT_DATA: "true"
|
|
|
|
FF_GENERATE_SOCIAL_CARDS: "true"
|
|
|
|
SECURE_FILES_DOWNLOAD_PATH: /run/secrets
|
2023-03-24 18:26:22 +00:00
|
|
|
|
2023-07-13 18:13:07 +00:00
|
|
|
pages:
|
2023-03-24 18:26:22 +00:00
|
|
|
script:
|
2023-03-27 15:29:38 +00:00
|
|
|
- bash ./build.sh
|
2023-03-24 18:26:22 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-07-13 18:13:07 +00:00
|
|
|
# The folder that contains the files to be exposed at the Page URL
|
2023-03-24 18:26:22 +00:00
|
|
|
- public
|
2023-03-27 15:29:38 +00:00
|
|
|
rules:
|
2023-07-13 18:13:07 +00:00
|
|
|
# This ensures that only pushes to the default branch will trigger
|
|
|
|
# a pages deploy
|
|
|
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|