Commit 581fbbea authored by Peter Hutterer's avatar Peter Hutterer
Browse files

GitLab CI: print out the image age in seconds

Helps with debugging purposes

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent dc877190
Pipeline #2614 canceled with stages
in 48 minutes and 2 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment