build-debian: Add ARTIFACTS_DIR option

This commit is contained in:
Johan Gunnarsson 2021-08-05 20:01:23 +02:00
parent c8761c0b7e
commit f8a73ebf8e
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ echo "${OS}" > debian/etc/hostname
# List all files # List all files
find debian ! -type d -printf "/%P\n" | sort > files.txt find debian ! -type d -printf "/%P\n" | sort > files.txt
cp files.txt "/artifacts/${OS}-${DIST}-${ARCH}-${PASSWORD}.bin.gz.files.txt" cp files.txt "${ARTIFACTS_DIR:-/artifacts}/${OS}-${DIST}-${ARCH}-${PASSWORD}.bin.gz.files.txt"
# Make a ext4 filesystem of this and put it into the image # Make a ext4 filesystem of this and put it into the image
rm -f ext4.img rm -f ext4.img
@ -143,4 +143,4 @@ fallocate -l 1874MiB ext4.img
mkfs.ext4 -d debian ext4.img mkfs.ext4 -d debian ext4.img
gzip ext4.img gzip ext4.img
cp -v ext4.img.gz "/artifacts/${OS}-${DIST}-${ARCH}-${PASSWORD}.bin.gz" cp -v ext4.img.gz "${ARTIFACTS_DIR:-/artifacts}/${OS}-${DIST}-${ARCH}-${PASSWORD}.bin.gz"