fix cron pre-check

[SKIP CI]
This commit is contained in:
Ruben Momoa
2024-08-26 14:29:28 +02:00
parent 80148996a5
commit 07aa60dfbf

View File

@@ -16,7 +16,7 @@ steps:
image: docker
commands:
- docker pull php:${PHP_VERSION}-fpm-alpine
- docker pull vistanarvas/simple-laravel:latest-${PHP_VERSION}-fpm-alpine
- docker pull vistanarvas/simple-laravel:latest-${PHP_VERSION}
- BASE_IMG=$(docker inspect php:${PHP_VERSION}-fpm-alpine --format='{{.Created}}' | cut -d '.' -f 1)
- PREV_IMG=$(docker inspect vistanarvas/simple-laravel:latest-php-${PHP_VERSION} --format='{{.Created}}' | cut -d '.' -f 1)
- BASE_DATE=$(date -D "%Y-%m-%dT%H:%M:%S" -d "$BASE_IMG" +%s)