andersdamsgaard.com

my photography webpage
git clone git://src.adamsgaard.dk/andersdamsgaard.com # fast
git clone https://src.adamsgaard.dk/andersdamsgaard.com.git # slow
Log | Files | Refs | Submodules | README | LICENSE Back to index

commit 23c2122de3839950676954d5e2affc9bb703fd04
parent 4b27d5ca4ddf7b9ed9d9bbea303d59082811ff44
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  5 Nov 2018 08:47:15 +0100

Try removing unprocessed images after hugo command

Diffstat:
M.gitlab-ci.yml | 2+-
MMakefile | 16+++-------------
2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -12,7 +12,7 @@ pages: image: registry.gitlab.com/plett/hugoextended:0.50 before_script: - apt-get update - - apt-get install make tree + - apt-get install make - hugo version script: - make deploy-gitlab diff --git a/Makefile b/Makefile @@ -22,19 +22,9 @@ deploy-locally: .PHONY: generate-public generate-public: - # generate public/ - hugo - pwd - tree - # list unprocessed images - find public/ \ - -iname '.DS_Store' \ - -iname '*.jpg' \ - -not -iname '*resize*.jpg' \ - -not -iname '*fill*.jpg' \ - -not -iname '*fit*.jpg' \ - # remove unprocessed images - find public \ + # generate public/ and remove unprocessed images + hugo && \ + find public \ -iname '.DS_Store' \ -iname '*.jpg' \ -not -iname '*resize*.jpg' \