diff --git a/.github/download-boxes.sh b/.github/download-boxes.sh index d62261dc..afaa5d38 100755 --- a/.github/download-boxes.sh +++ b/.github/download-boxes.sh @@ -5,10 +5,15 @@ # already present on the system. set -euo pipefail - +YQ_VERSION=v4.29.2 +YQ_BINARY=yq_linux_amd64 GIT_ROOT=$(git rev-parse --show-toplevel) PROVIDER=virtualbox +# gey yq used for filtering +wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\ + chmod +x /usr/bin/yq + # Read all boxes for all platforms from the "molecule.yml" files all_boxes=$(cat "${GIT_ROOT}"/molecule/*/molecule.yml | yq -r '.platforms[].box' | # Read the "box" property of each node under "platforms"