docker-worker doesn’t like gzip, try lz4

This commit is contained in:
Simon Sapin 2018-09-10 19:00:45 +02:00
parent 8e7d83206f
commit 22f5da0a92
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ image_build_task = create_task(
"dind": True, # docker-in-docker "dind": True, # docker-in-docker
}, },
artifacts=[ artifacts=[
("image.tar.gz", "/image.tar.gz"), ("image.tar.lz4", "/image.tar.lz4"),
], ],
) )
@ -88,7 +88,7 @@ build_task = create_task(
image={ image={
"type": "task-image", "type": "task-image",
"taskId": image_build_task, "taskId": image_build_task,
"path": "public/image.tar.gz", "path": "public/image.tar.lz4",
}, },
artifacts=[ artifacts=[

View file

@ -9,4 +9,4 @@ apt-get update -q
apt-get install -qy --no-install-recommends docker.io apt-get install -qy --no-install-recommends docker.io
docker version docker version
./docker/build.sh "$image" ./docker/build.sh "$image"
docker save "$image" | gzip > /image.tar.gz docker save "$image" | lz4 > /image.tar.lz4