-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
43 lines (43 loc) · 1.27 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
pipeline:
build:
image: plugins/docker
tag: latest
dockerfile: Dockerfile
repo: strum355/refund-backend
secrets: [ docker_username, docker_password, mysql_user, mysql_pass, mysql_url ]
build_args_from_env:
- mysql_user
- mysql_pass
- mysql_url
when:
event: [ push, tag ]
branch: master
ssh:
image: appleboy/drone-ssh
host: leela.netsoc.co
username: strum355
port: 22
secrets: [ ssh_password ]
script:
- docker pull strum355/refund-backend
- docker stop noah-refund
- docker rm noah-refund
- docker run -d -p 5555:8080 --name noah-refund -v ~/UCC/CS3305/java/application.properties:/refund/application.properties -v ~/UCC/CS3305/java/uploads:/refund/uploads strum355/refund-backend
when:
event: [ push, tag ]
branch: master
webhook:
image: plugins/slack
secrets: [ slack_webhook ]
channel: back-end
icon_url: https://cdn.worldvectorlogo.com/logos/drone.svg
username: Refund CI
template: >
{{#success build.status}}
Build {{build.number}} succeeded. Good job.
{{else}}
Build {{build.number}} failed. Fix me please.
{{/success}}
when:
event: [ push, tag ]
branch: master