Switch to squashfs
This commit is contained in:
parent
7f7c2b56ac
commit
971b1d30b8
3 changed files with 10 additions and 9 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,4 +1,3 @@
|
|||
rootfs.tar
|
||||
rootfs.tar.gz
|
||||
rootfs.torrent
|
||||
ansible/**/*.retry
|
||||
build
|
||||
bin
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
{
|
||||
"type": "docker",
|
||||
"image": "debian:stretch",
|
||||
"export_path": "rootfs.tar"
|
||||
"export_path": "build/rootfs.tar"
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue