-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
41 lines (38 loc) · 1.02 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
build_prod:
before_script:
- docker-compose -f docker-compose.prod.yml down --rmi all
- echo y | docker network prune
variables:
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
SECRET_KEY: $SECRET_KEY
ENV: production
stage: deploy
tags :
- indico-dev
only:
refs:
- master
script:
# - export PYTHONDONTWRITEBYTECODE=1
# - chmod +x ./api/docker-entrypoint.sh
- docker-compose -f docker-compose.prod.yml up -d --force-recreate
build_staging:
before_script:
- docker-compose -f docker-compose.dev.yml down --rmi all
- echo y | docker network prune
variables:
POSTGRES_USER: $POSTGRES_USER_DEV
POSTGRES_PASSWORD: $POSTGRES_PASSWORD_DEV
SECRET_KEY: $SECRET_KEY_DEV
ENV: production
stage: deploy
tags :
- indico-v2
only:
refs:
- dev
script:
# - export PYTHONDONTWRITEBYTECODE=1
# - chmod +x ./api/docker-entrypoint.sh
- docker-compose -f docker-compose.dev.yml up -d --force-recreate