Woodpecker != Drone
This commit is contained in:
parent
2d21898ebc
commit
4f2fb82713
|
@ -1,26 +1,8 @@
|
||||||
---
|
pipeline:
|
||||||
kind: pipeline
|
master:
|
||||||
type: ssh
|
image: machines/ssh
|
||||||
name: deploy
|
commands:
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
server:
|
- echo $SSH_KEY > ~/.ssh/id_rsa
|
||||||
host:
|
- ssh websiteupdate@vern.cc -p1813 "cd /var/www/websitenew && git pull && git reset --hard origin/master"
|
||||||
from_secret: hostname
|
secrets: [ ssh_key ]
|
||||||
user:
|
|
||||||
from_secret: username
|
|
||||||
ssh_key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: deploy
|
|
||||||
commands:
|
|
||||||
- cd /var/www/websitenew
|
|
||||||
- git pull
|
|
||||||
- git reset --hard origin/master
|
|
||||||
|
|
Loading…
Reference in New Issue