deploy pipeline

This commit is contained in:
Solomon Laing 2025-12-29 17:55:34 +10:30
parent 88af30e892
commit 3be9f7ece5

View File

@ -1,7 +1,7 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: ssh
name: default name: Tutorial
trigger: trigger:
branch: branch:
@ -9,9 +9,26 @@ trigger:
event: event:
- push - push
server:
host: bristlecone
user: droneci
ssh_key:
from_secret: rsa_key
clone:
disable: true
steps: steps:
- name: build - name: Setup
image: alpine commands:
commands: - cd /var/www/html
- echo "building..." - rm -rf solomonlai.ng
- echo "build complete."
- 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