-
Notifications
You must be signed in to change notification settings - Fork 9
/
.drone.yml
47 lines (44 loc) · 1.12 KB
/
.drone.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
kind: pipeline
type: docker
name: gzhupi
trigger:
branch:
- master
steps:
- name: setup
image: zhenshaw/docker:compose
volumes:
- name: docker_sock
path: /var/run/docker.sock
environment:
GZHUPI_SECRET_JWT:
from_secret: GZHUPI_SECRET_JWT
GZHUPI_RPC_ADDR:
from_secret: GZHUPI_RPC_ADDR
GZHUPI_RPC_TOKEN:
from_secret: GZHUPI_RPC_TOKEN
GZHUPI_DB_HOST:
from_secret: GZHUPI_DB_HOST
GZHUPI_DB_PORT:
from_secret: GZHUPI_DB_PORT
GZHUPI_DB_USER:
from_secret: GZHUPI_DB_USER
GZHUPI_DB_PASSWORD:
from_secret: GZHUPI_DB_PASSWORD
GZHUPI_DB_DBNAME:
from_secret: GZHUPI_DB_DBNAME
GZHUPI_DB_SSLMODE:
from_secret: GZHUPI_DB_SSLMODE
GZHUPI_REDIS_HOST:
from_secret: GZHUPI_REDIS_HOST
GZHUPI_REDIS_PORT:
from_secret: GZHUPI_REDIS_PORT
GZHUPI_REDIS_PASSWORD:
from_secret: GZHUPI_REDIS_PASSWORD
commands:
- cd Server
- docker-compose -f docker-compose-gzhupi.yml up -d --build
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock