mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Merge pull request #14 from weaveworks/increase-image-timeout
Increase rebuild-image image lifetime to 3 days.
This commit is contained in:
@@ -52,7 +52,8 @@ if has_changes $cached_revision $CIRCLE_SHA1 ; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(commit_timestamp $cached_revision)" -lt "$(( $(date +%s) - 86400 ))" ]; then
|
IMAGE_TIMEOUT="$(( 3 * 24 * 60 * 60 ))"
|
||||||
|
if [ "$(commit_timestamp $cached_revision)" -lt "${IMAGE_TIMEOUT}" ]; then
|
||||||
echo ">>> Image is more the 24hrs old; rebuilding"
|
echo ">>> Image is more the 24hrs old; rebuilding"
|
||||||
rebuild
|
rebuild
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user