-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
48 lines (42 loc) · 862 Bytes
/
.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
48
---
kind: pipeline
name: build
steps:
- name: build
image: plugins/docker
settings:
registry: ghcr.io
username: simoneromano96
password:
from_secret: token
repo: ghcr.io/simoneromano96/graphql-todo/backend
context: .
dockerfile: ./.docker/app.dockerfile
auto_tag: true
target: production
config:
from_secret: docker_auth_config
---
kind: pipeline
type: ssh
name: deploy
server:
host:
from_secret: host
user:
from_secret: user
port:
from_secret: port
ssh_key:
from_secret: ssh_key
steps:
- name: deploy-docker-api
commands:
- cd ~/docker/streams/graphql-todo
- docker-compose pull api && docker-compose stop api && docker-compose rm -f api && docker-compose up api
depends_on:
- build
trigger:
event:
- promote
- rollback