Skip to content

Commit ee579bb

Browse files
committed
Fix download job
1 parent ea3f70a commit ee579bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/sync-base-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}"

scripts/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ HETZNER_BASE="https://${HETZNER_MIRROR_USER}:${HETZNER_MIRROR_PASS}@download.het
1414

1515
CONFIG_FILE="config/images.yaml"
1616
if 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

0 commit comments

Comments
 (0)