adding a step in ci to remove old html files
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8879a8aeab
commit
dad0d157ef
14
.drone.yml
14
.drone.yml
@ -8,6 +8,20 @@ steps:
|
||||
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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user