blog/.drone.yml
simonpetit 1170b3d25c
All checks were successful
continuous-integration/drone/push Build is passing
another try
2025-12-03 18:01:03 +00:00

45 lines
699 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: Publish
image: git.simonpetit.top/simonpetit/bob:0.1.3
command:
- 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