-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
48 lines (41 loc) · 1.12 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
include:
- project: 'pedroetb-projects/gitlab-ci-templates'
ref: master
file: '/packaging-docker/docker-build.yml'
- project: 'pedroetb-projects/gitlab-ci-templates'
ref: master
file: '/deployment-service/custom-image.yml'
- project: 'pedroetb-projects/gitlab-ci-templates'
ref: master
file: '/deployment-service/lulu/docker-deploy.yml'
stages:
- pre-package
- package
- post-package
- deploy
.deploy:
variables:
FORCE_DOCKER_COMPOSE: 1
COMPOSE_FILE: compose.tts-api.yaml
SERVICES_TO_CHECK: tts-api
.deploy-lulu:
environment:
name: lulu/tts-api
.deploy-caddy:
variables: &deploy-caddy-variables
FORCE_DOCKER_COMPOSE: 0
COMPOSE_FILE: compose.caddy.yaml
SERVICES_TO_CHECK: ${CI_PROJECT_NAME}_caddy
.deploy-lulu-caddy:
environment: &deploy-lulu-caddy-environment
name: lulu/caddy
deploy-branch-lulu-caddy:
extends: deploy-branch-lulu
variables:
<<: *deploy-caddy-variables
environment: *deploy-lulu-caddy-environment
deploy-tag-lulu-caddy:
extends: deploy-tag-lulu
variables:
<<: *deploy-caddy-variables
environment: *deploy-lulu-caddy-environment