File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ jobs:
115115 REPO : ${{ github.repository }}
116116 run : |
117117 for image in $(yq -r '.images | keys | .[]' config/images.yaml); do
118- arches=$(yq -r --arg image "$image" '.images[$ image] | keys | .[]' config/images.yaml)
118+ arches=$(image= "$image" yq -r '.images[env( image) ] | keys | .[]' config/images.yaml)
119119 refs=""
120120 for arch in $arches; do
121121 refs="${refs} ${REGISTRY}/${REPO}/${image}:${arch}"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ HETZNER_BASE="https://${HETZNER_MIRROR_USER}:${HETZNER_MIRROR_PASS}@download.het
1414
1515CONFIG_FILE=" config/images.yaml"
1616if command -v yq & > /dev/null && [ -f " $CONFIG_FILE " ]; then
17- BASE_FILE=$( yq -r --arg image " $IMAGE " --arg arch " $ARCH " ' .images[$image][$arch ] // empty ' " $CONFIG_FILE " )
17+ BASE_FILE=$( IMAGE= " $IMAGE " ARCH= " $ARCH " yq -r ' .images[env(IMAGE)][env(ARCH) ] // "" ' " $CONFIG_FILE " )
1818 if [ -z " $BASE_FILE " ]; then
1919 echo " ERROR: No config for image=${IMAGE} arch=${ARCH} in ${CONFIG_FILE} "
2020 exit 1
You can’t perform that action at this time.
0 commit comments