solomonlai.ng/.drone.yml
2025-12-29 17:55:34 +10:30

35 lines
530 B
YAML

---
kind: pipeline
type: ssh
name: Tutorial
trigger:
branch:
- main
event:
- push
server:
host: bristlecone
user: droneci
ssh_key:
from_secret: rsa_key
clone:
disable: true
steps:
- 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