Switch to squashfs

This commit is contained in:
jalr 2018-02-17 01:01:09 +01:00
parent 7f7c2b56ac
commit 971b1d30b8
3 changed files with 10 additions and 9 deletions

5
.gitignore vendored
View file

@ -1,4 +1,3 @@
rootfs.tar
rootfs.tar.gz
rootfs.torrent
ansible/**/*.retry
build
bin

View file

@ -28,13 +28,15 @@ packer:
services:
- docker:dind
before_script:
- apk add --no-cache ansible openssh-client
- apk add --no-cache ansible openssh-client squashfs-tools
script:
- bin/packer build packer.json
- gzip -k -f rootfs.tar
- mkdir build/rootfs
- tar xf build/rootfs.tar -C build/rootfs
- mksquashfs build/rootfs build/rootfs.squashfs
artifacts:
paths:
- rootfs.tar.gz
- build/rootfs.squashfs
expire_in: 2 weeks
cache:
key: "binaries_packer-$PACKER_VERSION"
@ -54,10 +56,10 @@ mktorrent:
before_script:
- apk add --no-cache mktorrent
script:
- mktorrent -a "$ANNOUNCE" -o rootfs.torrent -l 22 -w "$WEBSEED" rootfs.tar.gz
- mktorrent-borg -a "$ANNOUNCE" -o build/rootfs.squashfs.torrent -l 22 -w "$WEBSEED" build/rootfs.squashfs
artifacts:
paths:
- rootfs.torrent
- build/rootfs.squashfs.torrent
expire_in: 2 weeks
cache:
key: binaries

View file

@ -16,7 +16,7 @@
{
"type": "docker",
"image": "debian:stretch",
"export_path": "rootfs.tar"
"export_path": "build/rootfs.tar"
}
],
"provisioners": [