diff --git a/.woodpecker/build_release.yml b/.woodpecker/build_release.yml index 1613534..c008160 100644 --- a/.woodpecker/build_release.yml +++ b/.woodpecker/build_release.yml @@ -18,7 +18,7 @@ steps: - docker pull php:${PHP_VERSION}-fpm-alpine - docker pull vistanarvas/simple-laravel:${PHP_VERSION}-fpm-alpine - BASE_IMG=$(docker inspect php:${PHP_VERSION}-fpm-alpine --format='{{.Created}}' | cut -d '.' -f 1) - - PREV_IMG=$(docker inspect vistanarvas/simple-laravel:php-${PHP_VERSION} --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) - PREV_DATE=$(date -D "%Y-%m-%dT%H:%M:%S" -d "$PREV_IMG" +%s) - if [ "$PREV_DATE" -gt "$BASE_DATE" ]; then echo "no rebuild needed"; exit 1; fi