Use a more capable tar implementation
The GitLab CI build environment provides a BusyBox version.
This commit is contained in:
parent
01d9130021
commit
e3741f20dd
|
|
@ -34,3 +34,9 @@ done
|
||||||
chroot $rootfs apt-get --purge autoremove -q -y
|
chroot $rootfs apt-get --purge autoremove -q -y
|
||||||
|
|
||||||
umount $rootfs/dev/pts
|
umount $rootfs/dev/pts
|
||||||
|
|
||||||
|
tar -caf $rootfs.tar.gz \
|
||||||
|
--directory $rootfs \
|
||||||
|
--exclude './dev/**' \
|
||||||
|
--numeric-owner \
|
||||||
|
--transform 's,^\./,,' .
|
||||||
|
|
|
||||||
6
build.sh
6
build.sh
|
|
@ -18,12 +18,6 @@ docker run --rm \
|
||||||
IMAGE=$CI_REGISTRY_IMAGE
|
IMAGE=$CI_REGISTRY_IMAGE
|
||||||
STAMP=$(date +%F)
|
STAMP=$(date +%F)
|
||||||
|
|
||||||
tar -caf rootfs.tar.gz \
|
|
||||||
--directory rootfs \
|
|
||||||
--exclude './dev/**' \
|
|
||||||
--numeric-owner \
|
|
||||||
--transform 's,^\./,,' .
|
|
||||||
|
|
||||||
cat > Dockerfile <<EOF
|
cat > Dockerfile <<EOF
|
||||||
FROM scratch
|
FROM scratch
|
||||||
ADD rootfs.tar.gz /
|
ADD rootfs.tar.gz /
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue