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.
 
 
 
 

33 lines
690 B

kind: pipeline
type: docker
name: default
trigger:
branch:
- master
event:
- push
steps:
- name: deploy
image: mdenis/php-ssh:latest
environment:
SSH_KEY:
from_secret: ssh_key
commands:
- eval `ssh-agent -s`
- mkdir ~/.ssh
- echo "$${SSH_KEY}" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
- ssh-keyscan -H medvid.cc >> ~/.ssh/known_hosts
- dep deploy
- name: notify
image: drillster/drone-email
environment:
PLUGIN_FROM: "git@medvid.cc"
PLUGIN_HOST: "mail.medvid.cc"
PLUGIN_USERNAME: "git@medvid.cc"
PLUGIN_PASSWORD:
from_secret: email_password