-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
40 lines (38 loc) · 865 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
kind: pipeline
type: docker
name: portfolio-cicd
steps:
- name: Deployment
image: docker/compose
volumes:
- name: docker_socket
path: /var/run/docker.sock
commands:
- docker-compose build
- docker-compose down
- docker-compose up -d
- docker system prune -a -f
environment:
WEBSITE_PORT:
from_secret: WEBSITE_PORT
DATABASE_USER:
from_secret: DATABASE_USER
DATABASE_PASSWORD:
from_secret: DATABASE_PASSWORD
DATABASE_PORT:
from_secret: DATABASE_PORT
MAIL_USERNAME:
from_secret: MAIL_USERNAME
MAIL_PASSWORD:
from_secret: MAIL_PASSWORD
GHOST_KEY:
from_secret: GHOST_KEY
when:
branch:
- main
event:
- push
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock