From 384aa77d5100768848cd848d466acb1d1aa9e5b7 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Sat, 20 Aug 2022 15:15:35 +0200 Subject: [PATCH] Try without execdir --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69b147a..055bd29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,11 +5,10 @@ variables: pages: before_script: - - apk add --no-cache file - apk add --no-cache imagemagick script: - hugo - - find ./public -name '*.jpg' -execdir sh -c "mogrify -monitor -sampling-factor 4:2:0 -strip -interlace JPEG -colorspace sRGB -resize 2048 -compress JPEG -quality 80 *.jpg" {} \; + - find ./public -name '*.jpg' -exec sh -c "mogrify -monitor -sampling-factor 4:2:0 -strip -interlace JPEG -colorspace sRGB -resize 2048 -compress JPEG -quality 80 " {} \; artifacts: paths: - public