add .drone.yml

This commit is contained in:
creme 2020-05-22 19:26:33 +02:00
parent ff49011250
commit f944f075a3
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 25 additions and 0 deletions

25
.drone.yml Normal file
View File

@ -0,0 +1,25 @@
---
kind: pipeline
type: ssh
name: deploy
server:
host:
from_secret: host
user:
from_secret: username
ssh_key:
from_secret: ssh_key
clone:
disable: true
trigger:
branch:
- master
steps:
- name: deploy
commands:
- cd /opt/ops
- sudo -Hu root git pull origin master