write OCIs to temp files initially so make does not assume success

This commit is contained in:
Lance Vick 2024-01-31 14:24:44 -08:00
parent e052722c12
commit 253b6b122c
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ define build
$(EXTRA_ARGS) \
$(NOCACHE_FLAG) \
src/$(CATEGORY)/$(NAME) \
| gzip > $@; \
| gzip > $@.tmp; \
mv $@.tmp $@; \
gunzip -c $@ | docker load; \
)
$(eval TIMESTAMP := $(shell TZ=GMT date +"%Y-%m-%dT%H:%M:%SZ"))