diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-30 12:04:05 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-30 12:05:42 +1000 |
commit | 581fbbea64898c57b658fedacfaa518c14ad3b0f (patch) | |
tree | fa4c3610e7707b71f308f2cb5877ea4cc964a5d2 /.gitlab-ci.yml | |
parent | dc877190ec92730e007e3949e80db91a4b37225d (diff) |
GitLab CI: print out the image age in seconds
Helps with debugging purposes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 2 insertions, 0 deletions
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: |