aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-12-26 19:44:49 -0500
committerThedro Neely <thedroneely@gmail.com>2019-12-26 19:44:49 -0500
commit0c9334bacf14748f62a416390307a483a520abe9 (patch)
tree2bb25408778d8ce4e78ff7395c221aac4c643c99 /.drone.yml
parent00e758ec48e4aeea7fbd109477304cb709ad1688 (diff)
downloadthedroneely.com-0c9334bacf14748f62a416390307a483a520abe9.tar.gz
thedroneely.com-0c9334bacf14748f62a416390307a483a520abe9.tar.bz2
thedroneely.com-0c9334bacf14748f62a416390307a483a520abe9.zip
.drone.yml: Update timestamps on images after origin sync
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 5e9f24d..ddc8eaa 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -123,6 +123,10 @@ steps:
scp -r -o StrictHostKeyChecking=no -P $ORIGIN_PORT -vT -i ssh-key images/*
$ORIGIN_USER@$ORIGIN_HOST:/srv/http/staging/thedroneely.com/public/images
+- >
+ ssh -o StrictHostKeyChecking=no -p $ORIGIN_PORT -vT -i ssh-key $ORIGIN_USER@$ORIGIN_HOST
+ 'find /srv/http/staging/thedroneely.com/public/images -type f -exec touch -d "2 days ago" {} +'
+
- >
scp -r -o StrictHostKeyChecking=no -P $ORIGIN_PORT -vT -i ssh-key videos/*
$ORIGIN_USER@$ORIGIN_HOST:/srv/http/staging/thedroneely.com/public/videos