Browse Source

drone

master
Cara Salter 3 months ago
parent
commit
c9b5f2c8bd
  1. 44
      .drone.yml

44
.drone.yml

@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
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
Loading…
Cancel
Save