aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-08-17 23:56:23 -0400
committerThedro Neely <thedroneely@gmail.com>2019-08-17 23:56:23 -0400
commit070fe05423adc3a9b61d06801bf24b14af86a82b (patch)
tree6184dec3e10af558b831013d1e8de95091ff58b4 /.drone.yml
parent73df60d33218ecd85442fb20fd0c9acaf7879ab0 (diff)
downloadthedroneely.com-070fe05423adc3a9b61d06801bf24b14af86a82b.tar.gz
thedroneely.com-070fe05423adc3a9b61d06801bf24b14af86a82b.tar.bz2
thedroneely.com-070fe05423adc3a9b61d06801bf24b14af86a82b.zip
.drone.yml: Set image timestamps 48 hours back
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.drone.yml b/.drone.yml
index 0a7ef57..70ad964 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -122,7 +122,7 @@ steps:
- name: openring
image: debian:stretch-slim
commands:
-
+
- apt-get update
- apt-get install -y wget
- wget https://yukari.sr.ht/openring
@@ -193,7 +193,7 @@ steps:
cd $NAME-$DATE/generators/hugo &&
hugo &&
cd /srv/deploys/$NAME &&
-
+
chattr -i -Rf "$(ls -t | awk "NR>8")" || true &&
rm -rf "$(ls -t | awk "NR>8")" &&
@@ -204,5 +204,7 @@ steps:
chattr +i $NAME-$DATE/generators/hugo/content/posts/archive.md &&
chattr +i $NAME-$DATE/generators/hugo/content/projects/archive.md &&
+ find $NAME-$DATE/public/images -type f -exec touch -d "2 days ago" {} + &&
+
ls -la
'