Add cache purging step to drone
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
343b933aee
commit
5a38c1f28d
13
.drone.yml
13
.drone.yml
@ -24,6 +24,19 @@ steps:
|
|||||||
source: ./
|
source: ./
|
||||||
target: ~/web/dev.yarmo.eu
|
target: ~/web/dev.yarmo.eu
|
||||||
exclude: [ ".git/", ".gitignore", ".drone.yml", "composer.json", "composer.lock" ]
|
exclude: [ ".git/", ".gitignore", ".drone.yml", "composer.json", "composer.lock" ]
|
||||||
|
- name: purge cache
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
port:
|
||||||
|
from_secret: ssh_port
|
||||||
|
username:
|
||||||
|
from_secret: ssh_user
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
script:
|
||||||
|
- rm -rf web/dev.yarmo.eu/cache/*
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user