6
0

Container private dependency with specific branches

This commit is contained in:
Jon Michael Aanes 2024-02-11 15:14:21 +01:00
parent a2437b318e
commit 246be0640a

View File

@ -92,7 +92,15 @@ jobs:
run: | run: |
mkdir -p private_deps mkdir -p private_deps
cd private_deps cd private_deps
cat ../requirements_private.txt | xargs -L 1 git clone while IFS=$" " read -r -a dependency_spec
do
if test -n "${dependency_spec[1]}"
then
git clone --single-branch --no-tags "${dependency_spec[0]}" --branch "${dependency_spec[1]}"
else
git clone --single-branch --no-tags "${dependency_spec[0]}"
fi
done < ../requirements_private.txt
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2