-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (40 loc) · 1.14 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
include:
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/packaging-docker/docker-build.yml'
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/deployment-service/docker-deploy.yml'
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/deployment-service/custom-image.yml'
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/deployment-external-service/backup-postgresql.yml'
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/deployment-service/maintenance.yml'
stages:
- pre-package
- package
- post-package
- deploy
- deploy-external-service
- maintenance
variables:
PROJECT_PARENT_NAME: postgres
.deploy:
variables:
STACK: ${PROJECT_PARENT_NAME}
.deploy-external-service:
variables:
STACK: ${PROJECT_PARENT_NAME}
.deploy-external-backup-postgresql:
variables:
DD_POSTGRES_NET_NAME: ${DD_DATABASE_NET}
DD_POSTGRES_HOSTNAME: ${DD_DATABASE_HOST}
DD_POSTGRES_USER: postgres
.scheduled-run:
variables:
STACK: ${PROJECT_PARENT_NAME}
SERVICE: ${PROJECT_PARENT_NAME}_backup-postgresql