Use a more capable tar implementation

The GitLab CI build environment provides a BusyBox version.
This commit is contained in:
Olaf Meeuwissen 2017-08-19 15:26:25 +09:00
parent 01d9130021
commit e3741f20dd
2 changed files with 6 additions and 6 deletions

View File

@ -34,3 +34,9 @@ done
chroot $rootfs apt-get --purge autoremove -q -y
umount $rootfs/dev/pts
tar -caf $rootfs.tar.gz \
--directory $rootfs \
--exclude './dev/**' \
--numeric-owner \
--transform 's,^\./,,' .

View File

@ -18,12 +18,6 @@ docker run --rm \
IMAGE=$CI_REGISTRY_IMAGE
STAMP=$(date +%F)
tar -caf rootfs.tar.gz \
--directory rootfs \
--exclude './dev/**' \
--numeric-owner \
--transform 's,^\./,,' .
cat > Dockerfile <<EOF
FROM scratch
ADD rootfs.tar.gz /