fix(script): convert to linux

This commit is contained in:
Timothy Stewart
2022-10-31 21:29:24 -05:00
parent 2f8d94bb5e
commit fc823122d8

View File

@@ -5,10 +5,15 @@
# already present on the system. # already present on the system.
set -euo pipefail set -euo pipefail
YQ_VERSION=v4.29.2
YQ_BINARY=yq_linux_amd64
GIT_ROOT=$(git rev-parse --show-toplevel) GIT_ROOT=$(git rev-parse --show-toplevel)
PROVIDER=virtualbox 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 # Read all boxes for all platforms from the "molecule.yml" files
all_boxes=$(cat "${GIT_ROOT}"/molecule/*/molecule.yml | all_boxes=$(cat "${GIT_ROOT}"/molecule/*/molecule.yml |
yq -r '.platforms[].box' | # Read the "box" property of each node under "platforms" yq -r '.platforms[].box' | # Read the "box" property of each node under "platforms"