2023-03-24 18:26:22 +00:00
|
|
|
image:
|
2023-03-31 16:57:02 +00:00
|
|
|
name: dock.mau.dev/ajhalili2006/tildeverse-web/build-ci:commit-a9761cf4f2f1b8298f69aaaa07e0a577329a17d6
|
2023-03-31 16:43:12 +00:00
|
|
|
entrypoint:
|
|
|
|
- /bin/bash
|
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
|
|
|
|
|
|
|
.setupkit:
|
|
|
|
before_script:
|
2023-03-31 16:24:07 +00:00
|
|
|
- apk add curl gnupg bash coreutils && mkdir /run/secrets
|
2023-03-24 18:26:22 +00:00
|
|
|
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
|
2023-03-27 15:29:38 +00:00
|
|
|
- (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-27 15:47:28 +00:00
|
|
|
tags:
|
|
|
|
- amd64
|
2023-03-24 18:26:22 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- lint
|
|
|
|
- deploy
|
|
|
|
|
2023-05-05 09:24:28 +00:00
|
|
|
build:mr:
|
|
|
|
extends: [ .setupkit ]
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- bash ./bin/build.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
untracked: false
|
|
|
|
when: on_success
|
|
|
|
expire_in: "21 days"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache
|
|
|
|
- .venv
|
|
|
|
key: pages-build-main
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH != 'main' && $CI_PIPELINE_SOURCE == "merge_request"
|
|
|
|
changes:
|
|
|
|
- mkdocs.yml
|
|
|
|
- markdown/*
|
|
|
|
- markdown/**/*
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
- docker/Dockerfile
|
|
|
|
- package*.json
|
|
|
|
- .trigger-deploy
|
|
|
|
|
2023-03-24 18:26:22 +00:00
|
|
|
build:main:
|
2023-03-27 15:29:38 +00:00
|
|
|
extends: [ .setupkit ]
|
2023-03-24 18:26:22 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2023-03-27 15:29:38 +00:00
|
|
|
- bash ./build.sh
|
2023-03-24 18:26:22 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
untracked: false
|
|
|
|
when: on_success
|
2023-03-27 15:29:38 +00:00
|
|
|
expire_in: "21 days"
|
2023-03-24 18:26:22 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache
|
2023-03-27 15:29:38 +00:00
|
|
|
- .venv
|
2023-03-24 18:26:22 +00:00
|
|
|
key: pages-build-main
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == 'main'
|
|
|
|
changes:
|
|
|
|
- mkdocs.yml
|
|
|
|
- markdown/*
|
|
|
|
- markdown/**/*
|
2023-03-27 15:55:13 +00:00
|
|
|
- .gitlab-ci.yml
|
|
|
|
- docker/Dockerfile
|
|
|
|
- package*.json
|
|
|
|
- .trigger-deploy
|
2023-03-24 18:26:22 +00:00
|
|
|
|
|
|
|
deploy:main:
|
2023-03-24 18:27:48 +00:00
|
|
|
stage: deploy
|
2023-03-27 15:29:38 +00:00
|
|
|
extends: [ .setupkit ]
|
2023-03-24 18:26:22 +00:00
|
|
|
needs:
|
|
|
|
- build:main
|
|
|
|
script:
|
2023-03-27 15:29:38 +00:00
|
|
|
- apk add nodejs-lts npm && npm i
|
2023-03-24 18:26:22 +00:00
|
|
|
- ls -Al
|
2023-03-27 15:29:38 +00:00
|
|
|
- doppler run -- echo hi
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
key: deploykit-main
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == 'main'
|
|
|
|
changes:
|
|
|
|
- mkdocs.yml
|
|
|
|
- markdown/*
|
2023-03-27 15:55:13 +00:00
|
|
|
- markdown/**/*
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
- docker/Dockerfile
|
|
|
|
- package*.json
|
|
|
|
- .trigger-deploy
|