From 581fbbea64898c57b658fedacfaa518c14ad3b0f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 30 Jul 2018 12:04:05 +1000 Subject: [PATCH] GitLab CI: print out the image age in seconds Helps with debugging purposes Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e9e89d5a..2e4f0f64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -151,10 +151,12 @@ variables: - TODAY_SECS=$(date -u +%s) - IMG_SECS=$(date -u --date="$IMG_DATE" +%s) - echo "today $TODAY_SECS, image $IMG_SECS" + - echo "image age $(($TODAY_SECS - $IMG_SECS))s" # check if image is less than a week old - test $(($IMG_SECS + 604800)) -gt $TODAY_SECS + # export an artefact telling the next stage that the image is valid - touch .img_ready artifacts: