Woodpecker != Drone

This commit is contained in:
Arya Kiran 2022-09-12 21:38:49 +05:30
parent 2d21898ebc
commit 4f2fb82713
No known key found for this signature in database
GPG Key ID: 3A6EA2D0EE314EEF
1 changed files with 8 additions and 26 deletions

View File

@ -1,26 +1,8 @@
---
kind: pipeline
type: ssh
name: deploy
server:
host:
from_secret: hostname
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
pipeline:
master:
image: machines/ssh
commands:
- mkdir -p ~/.ssh
- echo $SSH_KEY > ~/.ssh/id_rsa
- ssh websiteupdate@vern.cc -p1813 "cd /var/www/websitenew && git pull && git reset --hard origin/master"
secrets: [ ssh_key ]