-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
38 lines (34 loc) · 1.21 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
workspace:
base: /build
path: src
pipeline:
build:
image: docker
commands:
- docker build -t korigod/toldyou:latest toldyou
volumes:
- /var/run/docker.sock:/var/run/docker.sock
publish:
image: docker
secrets:
- source: docker_username
target: DOCKER_USERNAME
- source: docker_password
target: DOCKER_PASSWORD
commands:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push korigod/toldyou:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
image: docker
commands:
- docker pull korigod/toldyou
- docker stack deploy --with-registry-auth -c docker-compose.yml toldyou
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /packages/toldyou/toldyou/envs:/build/src/toldyou/envs:ro
- /packages/toldyou/mongo/envs:/build/src/mongo/envs:ro