forked from bigbluebutton/greenlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
74 lines (55 loc) · 1.87 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cache:
paths:
- /cache
variables:
# KUBE_INGRESS_BASE_DOMAIN is the application deployment domain and should be set as a variable at the group or project level.
POSTGRES_USER: greenlight
POSTGRES_ENABLED: "true"
POSTGRES_DB: $CI_ENVIRONMENT_SLUG
K8S_SECRET_DB_HOST: ${CI_ENVIRONMENT_SLUG}-postgresql
K8S_SECRET_DB_NAME: $POSTGRES_DB
K8S_SECRET_DB_USERNAME: $POSTGRES_USER
K8S_SECRET_DB_PASSWORD: $POSTGRES_PASSWORD
K8S_SECRET_DEFAULT_REGISTRATION: approval
K8S_SECRET_ROOM_FEATURES: "mute-on-join,require-moderator-approval,anyone-can-start,all-join-moderator"
K8S_SECRET_RELATIVE_URL_ROOT: "/"
K8S_SECRET_ALLOW_MAIL_NOTIFICATIONS: "true"
production_ADDITIONAL_HOSTS: $production_fqdn
review_ADDITIONAL_HOSTS: $review_fqdn
AUTO_DEVOPS_BUILD_IMAGE_EXTRA_ARGS: "--network host"
DOCKER_DRIVER: overlay2
ROLLOUT_RESOURCE_TYPE: deployment
DOCKER_TLS_CERTDIR: "" # https://gitlab.com/gitlab-org/gitlab-runner/issues/4501
AUTO_DEPLOY_IMAGE_VERSION: v1.0.7
stages:
- build
- test
- deploy # dummy stage to follow the template guidelines
- review
- dast
- staging
- canary
- production
- incremental rollout 10%
- incremental rollout 25%
- incremental rollout 50%
- incremental rollout 100%
- performance
- cleanup
include:
- template: Jobs/Build.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Build.gitlab-ci.yml
- template: Jobs/Deploy.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml
test:
stage: test
image: ruby:2.7.2
script:
- apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs
- bundle install --path=vendor/bundle
- bundle exec rake db:create RAILS_ENV=test
except:
variables:
- $CD_TEST_IGNORE
cache:
paths:
- vendor/bundle
needs: []