btrfs-progs/ci/images/ci-musl-i386/test-build
David Sterba 337ef1141d btrfs-progs: ci: fix docker test entry point scripts
There was a bug when a branch contained a slash then the file with
downloaded sources was not found. Update all, all images have to be
rebuilt and pushed to docker hub so the changes are applied inside
github actions.

Signed-off-by: David Sterba <dsterba@suse.com>
2024-01-26 05:58:42 +01:00

24 lines
550 B
Bash
Executable File

#!/bin/sh
# usage: $0 [branch name] [configure parameters]
urlbase="https://github.com/kdave/btrfs-progs/archive"
branch=${1:-devel}
fnbase="${branch/\//-}"
fname="${fnbase}.tar.gz"
url="${urlbase}/${branch}.tar.gz"
shift
echo "btrfs-progs build test of branch ${branch}"
cd /tmp
if [ -f "$fname" -a -s "$fname" ]; then
echo "Found local file $fname, not downloading"
else
echo "Missing or empty tar, downloading branch $branch from git"
rm -- "$fname"
wget "$url" -O "$fname"
fi
tar xf "$fname"
cd "btrfs-progs-$fnbase"
ci/build-default "$@"