mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
GitLab CI: print out the image age in seconds
Helps with debugging purposes Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
dc877190ec
commit
581fbbea64
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue