Skip to content

Commit 6c14212

Browse files
committed
static: temporarily skip containerd package if it's not built
Moby's cross target currently doesn't include containerd binaries, so skipping containerd to prevent publishing an empty tar. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 2918a25 commit 6c14212

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

static/build-static

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ case ${TARGETOS} in
249249
(
250250
set -x
251251
tar -C "${buildDir}" -c -z -f "${buildDir}/docker-engine-${ENGINE_VERSION}.tgz" docker-engine
252-
tar -C "${buildDir}" -c -z -f "${buildDir}/containerd-${CONTAINERD_PKG_VER#v}.tgz" containerd
252+
if [ "$(ls -A "${containerdBuildDir}")" ]; then
253+
# FIXME(thaJeztah) moby cross-compile currently doesn't include containerd binaries
254+
tar -C "${buildDir}" -c -z -f "${buildDir}/containerd-${CONTAINERD_PKG_VER#v}.tgz" containerd
255+
fi
253256
)
254257
;;
255258
windows)

0 commit comments

Comments
 (0)