|
| 1 | +image: 'node:10.14' |
| 2 | + |
| 3 | +variables: |
| 4 | + APP_PORT: '8080' |
| 5 | + HAS_GANACHE: 'false' |
| 6 | + HAS_DB: 'false' |
| 7 | + DB_SHOULD_DELETE: 'false' |
| 8 | + HAS_INGRESS: 'true' |
| 9 | + REPLICAS: '3' |
| 10 | + |
| 11 | +stages: |
| 12 | + - setup |
| 13 | + - test |
| 14 | + - build |
| 15 | + - review |
| 16 | + - tag |
| 17 | + - deploy |
| 18 | + - e2e-test |
| 19 | + - release |
| 20 | + - publish |
| 21 | + - post-deploy |
| 22 | + - run-jobs |
| 23 | + |
| 24 | +templates_version: |
| 25 | + stage: setup |
| 26 | + variables: |
| 27 | + GIT_STRATEGY: none |
| 28 | + script: |
| 29 | + - 'echo "Templates at last CI file update: https://git.brickblock.sh/devops/project-templates/tree/e3a87db1ab48a5c61d6a2e0a01d7f1d247c1fe45"' |
| 30 | + except: |
| 31 | + refs: |
| 32 | + - tags |
| 33 | + - master |
| 34 | + variables: |
| 35 | + - '$CI_COMMIT_MESSAGE =~ /[ci-release]/' |
| 36 | + dependencies: [] |
| 37 | + cache: {} |
| 38 | + |
| 39 | +check_env_vars: |
| 40 | + stage: setup |
| 41 | + variables: |
| 42 | + GIT_STRATEGY: none |
| 43 | + script: |
| 44 | + - ': "${REVIEW_DOMAIN:?Environment variable REVIEW_DOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"' |
| 45 | + - ': "${STAGING_DOMAIN:?Environment variable STAGING_DOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"' |
| 46 | + - ': "${PRODUCTION_DOMAIN:?Environment variable PRODUCTION_DOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"' |
| 47 | + - ': "${REVIEW_SUBDOMAIN:?Environment variable REVIEW_SUBDOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"' |
| 48 | + - ': "${STAGING_SUBDOMAIN:?Environment variable STAGING_SUBDOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"' |
| 49 | + - ': "${PRODUCTION_SUBDOMAIN:?Environment variable PRODUCTION_SUBDOMAIN needs to be set as a CI variable in the GitLab repo settings before running this script}"' |
| 50 | + - ': "${ZONE:?Environment variable ZONE needs to be set as a CI variable in the GitLab repo settings before running this script}"' |
| 51 | + - ': "${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}"' |
| 52 | + dependencies: [] |
| 53 | + cache: {} |
| 54 | + except: |
| 55 | + refs: |
| 56 | + - tags |
| 57 | + - master |
| 58 | + variables: |
| 59 | + - '$CI_COMMIT_MESSAGE =~ /[ci-release]/' |
| 60 | + |
| 61 | +include: |
| 62 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/cache.yml' |
| 63 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/setup.yml' |
| 64 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/lint.yml' |
| 65 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/test.yml' |
| 66 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/flow.yml' |
| 67 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/flow-coverage.yml' |
| 68 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/build-image.yml' |
| 69 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/review.yml' |
| 70 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/staging.yml' |
| 71 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/production.yml' |
| 72 | + - 'https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/purge.yml' |
0 commit comments