Portfolio2023/.drone.yml

31 lines
538 B
YAML

---
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