Skip to content

Commit d63a2cb

Browse files
author
Matthew Fisher
committed
ref(builder): compress archive into tarball
When we removed pigz from slugbuilder, it changed the format to a tar file. Compressing it with gzip by supplying tar the -z option reverts this behaviour.
1 parent 459a06c commit d63a2cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builder/slugbuilder/builder/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ fi
106106
## Produce slug
107107

108108
if [[ -f "$build_root/.slugignore" ]]; then
109-
tar --exclude='.git' -X "$build_root/.slugignore" -C $build_root -cf $slug_file . | cat
109+
tar -z --exclude='.git' -X "$build_root/.slugignore" -C $build_root -cf $slug_file . | cat
110110
else
111-
tar --exclude='.git' -C $build_root -cf $slug_file . | cat
111+
tar -z --exclude='.git' -C $build_root -cf $slug_file . | cat
112112
fi
113113

114114
if [[ "$slug_file" != "-" ]]; then

0 commit comments

Comments
 (0)