deploy pipeline
This commit is contained in:
parent
88af30e892
commit
3be9f7ece5
31
.drone.yml
31
.drone.yml
@ -1,7 +1,7 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
type: ssh
|
||||
name: Tutorial
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
@ -9,9 +9,26 @@ trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
server:
|
||||
host: bristlecone
|
||||
user: droneci
|
||||
ssh_key:
|
||||
from_secret: rsa_key
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "building..."
|
||||
- echo "build complete."
|
||||
- name: Setup
|
||||
commands:
|
||||
- cd /var/www/html
|
||||
- rm -rf solomonlai.ng
|
||||
|
||||
- name: clone
|
||||
environment:
|
||||
KEY:
|
||||
from_secret: ssh_key
|
||||
commands:
|
||||
- echo "$KEY" > $HOME/.ssh/id_git_rsa
|
||||
- git clone ssh://git@your.gitserver.com:6122/inkletblot/solomonlai.ng.git .
|
||||
- git checkout main
|
||||
|
||||
Loading…
Reference in New Issue
Block a user