You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
792 B

4 months ago
kind: pipeline
type: docker
name: default
steps:
- name: build
image: rust:latest
commands:
- cargo check
- cargo build --release
- name: deploy_binary
image: appleboy/drone-scp
settings:
username: deploy
key:
from_secret: ssh_key
host: kronos.devcara.com
port: 22
target: /usr/app/site/site
source:
- target/release/site
when:
event:
- promote
target:
- production
- name: restart_server
image: appleboy/drone-ssh
settings:
username: deploy
key:
from_secret: ssh_key
host: kronos.devcara.com
port: 22
script:
- sudo systemctl restart site
when:
event:
- promote
target:
- production