From b939b457daa2d7f6ae3b8ead2516473738a2c625 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Tue, 7 Mar 2023 23:14:19 +0000 Subject: [PATCH] release: Do not create empty archives When there are no binary artifacts we should not be generating tarballs since they will just be empty. Signed-off-by: Brian Goff --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 86f909fe0..dcb11ec26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,11 @@ FROM build AS build-tar WORKDIR /build/release ARG CRATE ARG TARGETOS TARGETARCH TARGETVARIANT -RUN tar -C /build/bin -czf /build/release/${CRATE}-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}.tar.gz . +RUN <