-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
71 lines (66 loc) · 2.85 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
image: 'node:10.14'
variables:
APP_PORT: '8080'
HAS_GANACHE: 'false'
HAS_DB: 'false'
DB_SHOULD_DELETE: 'false'
HAS_INGRESS: 'true'
REPLICAS: '3'
stages:
- setup
- test
- build
- review
- tag
- deploy
- e2e-test
- release
- publish
- post-deploy
- run-jobs
templates_version:
stage: setup
variables:
GIT_STRATEGY: none
script:
- 'echo "Templates at last CI file update: https://git.brickblock.sh/devops/project-templates/tree/ac3744662776f9f726e2053b798dbfdce1b275fa"'
except:
refs:
- tags
- master
variables:
- '$CI_COMMIT_MESSAGE =~ /\[ci-release\]/'
dependencies: []
cache: {}
check_env_vars:
stage: setup
variables:
GIT_STRATEGY: none
script:
- ': "${REVIEW_DOMAIN:?Environment variable REVIEW_DOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"'
- ': "${STAGING_DOMAIN:?Environment variable STAGING_DOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"'
- ': "${PRODUCTION_DOMAIN:?Environment variable PRODUCTION_DOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"'
- ': "${ZONE:?Environment variable ZONE needs to be set as a CI variable in the GitLab repo settings before running this script}"'
- ': "${SENTRY_AUTH_TOKEN:?Environment variable SENTRY_AUTH_TOKEN needs to be set as a CI variable in the GitLab repo settings before running this script}"'
- ': "${SLACK_WEBHOOK_URL:?Environment variable SLACK_WEBHOOK_URL needs to be set as a CI variable in the GitLab repo settings before running this script}"'
dependencies: []
cache: {}
except:
refs:
- tags
- master
variables:
- '$CI_COMMIT_MESSAGE =~ /\[ci-release\]/'
include:
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/cache.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/setup.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/lint.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/test.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/flow.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/flow-coverage.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/build-image.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/review.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/staging.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/production.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/sentry-release-production.yml'
- 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/purge.yml'