blog/.drone.yml
simonpetit dad0d157ef
Some checks failed
continuous-integration/drone/push Build is failing
adding a step in ci to remove old html files
2025-12-03 17:56:38 +00:00

46 lines
715 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:
- example1.com
- example2.com
username: ubuntu
password:
from_secret: ssh_password
port: 22
command_timeout: 2m
script:
- rm /var/www/html/blog/*.html
- 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