build-debian: Add ARTIFACTS_DIR option
This commit is contained in:
parent
c8761c0b7e
commit
f8a73ebf8e
|
|
@ -135,7 +135,7 @@ echo "${OS}" > debian/etc/hostname
|
|||
# List all files
|
||||
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
|
||||
rm -f ext4.img
|
||||
|
|
@ -143,4 +143,4 @@ fallocate -l 1874MiB ext4.img
|
|||
mkfs.ext4 -d debian 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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue