blog/.drone.yml
simonpetit 1123550d8a
Some checks failed
continuous-integration/drone/push Build is failing
trying new ci
2025-12-10 17:49:46 +00:00

48 lines
719 B
YAML

kind: pipeline
type: docker
name: default
clone:
depth: 0
steps:
- name: Publish
image: git.simonpetit.top/simonpetit/bob:0.1.4
commands:
- publish
- name: Remove old
image: appleboy/drone-ssh
settings:
host:
- simonpetit.top
username: debian
password:
from_secret: ssh_password
port: 22
command_timeout: 2m
script:
- rm -r /var/www/html/blog/posts/
- name: Deploy
image: appleboy/drone-scp
settings:
host:
- simonpetit.top
username: debian
password:
from_secret: ssh_password
port: 22
target: /var/www/html/blog/
source:
- index.html
- posts
- css
trigger:
event:
- push
branch:
- main