From 50c4614ded91aef1666bb138466a86af756c7ae9 Mon Sep 17 00:00:00 2001 From: andor0 Date: Tue, 15 Dec 2020 15:58:54 +0400 Subject: [PATCH] Update mtime of static files at deploy time (#6) --- charts/octopod/templates/octopod-deployment.yaml | 5 ++++- nix/default.nix | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/octopod/templates/octopod-deployment.yaml b/charts/octopod/templates/octopod-deployment.yaml index c64609f..3b7912a 100644 --- a/charts/octopod/templates/octopod-deployment.yaml +++ b/charts/octopod/templates/octopod-deployment.yaml @@ -51,7 +51,10 @@ spec: command: - sh - -c - - 'cp -a /www/* /copy/' + - | + set -ex + cp -a /www/* /copy/ + find /www -type f -exec touch {} + volumeMounts: - name: www mountPath: /copy diff --git a/nix/default.nix b/nix/default.nix index 7bc5949..7b9b1f5 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -29,6 +29,7 @@ with { gnugrep cacert' shadow + findutils ]; runAsRoot = ''