Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
fcb5b58b11
|
|||
|
96a614c1af
|
20
.drone.yml
20
.drone.yml
@@ -25,11 +25,31 @@ steps:
|
|||||||
script:
|
script:
|
||||||
- cd /home/coreid/CoreID
|
- cd /home/coreid/CoreID
|
||||||
- git pull
|
- git pull
|
||||||
|
- git checkout ${DRONE_TAG}
|
||||||
|
- git pull
|
||||||
- yarn install
|
- yarn install
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
- promote
|
- promote
|
||||||
|
- name: restart production services
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: deploy_ssh_host
|
||||||
|
username:
|
||||||
|
from_secret: deploy_ssh_admin_user
|
||||||
|
key:
|
||||||
|
from_secret: deploy_ssh_key
|
||||||
|
port:
|
||||||
|
from_secret: deploy_ssh_port
|
||||||
|
script:
|
||||||
|
- systemctl restart coreid-www
|
||||||
|
- systemctl restart coreid-jobs
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
- name: send success notifications
|
- name: send success notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
Reference in New Issue
Block a user