add .drone.yml

This commit is contained in:
creme 2020-05-24 10:20:34 +02:00
parent 1ad74606d4
commit f1ca7f289b
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 26 additions and 0 deletions

26
.drone.yml Normal file
View File

@ -0,0 +1,26 @@
---
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/services/bashblog
- sudo -Hu services git pull origin master
- sudo -Hu root make