Skip to content
Permalink
Browse files

Drone v1

  • Loading branch information...
Depado committed Nov 8, 2018
1 parent c857c3a commit d8584c9811b6aef5ce1db4b4ed65ade1ad4bce5a
Showing with 21 additions and 15 deletions.
  1. +21 −15 .drone.yml
@@ -1,25 +1,31 @@
pipeline:
remove:
image: appleboy/drone-ssh
---
kind: pipeline
name: default

steps:
- name: remove
image: appleboy/drone-ssh
settings:
host: blog.depado.eu
username: depado
secrets:
- source: deploy_key
target: ssh_key
ssh_key:
from_secret: ssh_key
script:
- rm -r /home/depado/smallblog/pages/*
when:
event: push
trigger:
branch: [master]
event: [push]

deploy:
image: appleboy/drone-scp
- name: deploy
image: appleboy/drone-scp
settings:
host: blog.depado.eu
username: depado
target: /home/depado/smallblog/pages/
source: ./pages/
strip_components: 2
secrets:
- source: deploy_key
target: scp_key
when:
event: push
scp_key:
from_secret: ssh_key
trigger:
branch: [master]
event: [push]

0 comments on commit d8584c9

Please sign in to comment.
You can’t perform that action at this time.