ci: Add deployment step to .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
9787a6230d
commit
25336f0586
18
.drone.yml
18
.drone.yml
@ -30,6 +30,24 @@ steps:
|
||||
# when:
|
||||
# status: [success, failure]
|
||||
# https://discord.com/api/webhooks/1213409068559900683/szl0AICZwA1V82dg8Vrc_xqOCl1WwnxktlQdf4cdILswR-xZBI5-JOdqGSD8dVUNcUlH
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
- 148.135.109.242
|
||||
username: root
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
port: 22
|
||||
command_timeout: 2m
|
||||
script:
|
||||
- echo "Pull new image"
|
||||
- docker pull git.tunpok.com/ching/grocy-barcode-helper:latest
|
||||
- echo "Go to the project directory"
|
||||
- cd /root/develop/grocy-barcode-helper
|
||||
- echo "Restart the container"
|
||||
- docker-compose down && docker-compose up -d
|
||||
|
||||
- name: discord notification
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user