Add drone.yml for CI
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Matthew Barnes 2023-06-24 15:06:25 +01:00
parent ab360946a3
commit d5df4ac33e
Signed by: mb2g17
GPG Key ID: 2D2CFBEE0B64E30B
1 changed files with 30 additions and 0 deletions

30
.drone.yml Normal file
View File

@ -0,0 +1,30 @@
---
kind: pipeline
type: ssh
name: Portfolio2023
server:
host: 178.79.190.21
user: matt
ssh_key:
from_secret: ssh_key
clone:
disable: true
steps:
- name: Update Repository
commands:
- cd /home/matt/Portfolio2023/
- git add rebuild.sh
- git stash
- git fetch origin
- git reset --hard origin/master
- git submodule update --init --recursive
- git stash pop
- name: Rebuild Site
commands:
- sudo /home/matt/Portfolio2023/rebuild.sh