don't gzip unless we have a valid tar file
This commit is contained in:
parent
77452b3995
commit
cf04bfc6e6
|
@ -43,7 +43,9 @@ define build
|
|||
--target $(TARGET) \
|
||||
$(EXTRA_ARGS) \
|
||||
$(NOCACHE_FLAG) \
|
||||
-f src/$(CATEGORY)/$(NAME)/Containerfile \
|
||||
src/$(CATEGORY)/$(NAME) \
|
||||
&& tar -tf $(basename $@).tar \
|
||||
&& gzip < $(basename $@).tar > $@ \
|
||||
&& rm $(basename $@).tar \
|
||||
&& gunzip -c $@ | docker load; \
|
||||
|
|
Reference in New Issue