gzip in separate step to avoid pipefail issues

This commit is contained in:
Lance Vick 2024-02-01 17:49:13 -08:00
parent 253b6b122c
commit 82efcb642b
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 4 additions and 3 deletions

View File

@ -44,9 +44,10 @@ define build
$(EXTRA_ARGS) \
$(NOCACHE_FLAG) \
src/$(CATEGORY)/$(NAME) \
| gzip > $@.tmp; \
mv $@.tmp $@; \
gunzip -c $@ | docker load; \
> $(basename $@).tar.tmp \
&& gzip < $(basename $@).tar.tmp > $@ \
&& rm $(basename $@).tar.tmp \
&& gunzip -c $@ | docker load; \
)
$(eval TIMESTAMP := $(shell TZ=GMT date +"%Y-%m-%dT%H:%M:%SZ"))
mkdir -p out/