ci: select only correct targz for rootfs build

Changes to upstream builds now create multiple targz images, so
the current wildcard selections result in multiple values instead
of the single one desired.

Make the image matching specific to the one desired.

Fixes: https://github.com/openwrt/docker/issues/202
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
pull/209/head
Eric Fahlgren 2026-07-15 10:34:29 -07:00 committed by Paul Spooren
parent 1164645a5e
commit f6d7df9305
1 changed files with 3 additions and 2 deletions

View File

@ -471,11 +471,12 @@ jobs:
id: build_args id: build_args
run: | run: |
echo 'args<<EOF echo 'args<<EOF
DOWNLOAD_FILE=openwrt-.*-rootfs.tar.gz TARGET=${{ matrix.target }}
TARGET_TAG="${TARGET//\//-}"
DOWNLOAD_FILE=openwrt-${TARGET_TAG}-rootfs.tar.gz
WORKDIR=/ WORKDIR=/
USER=root USER=root
VERSION_PATH=${{ needs.generate_matrix.outputs.version_path }} VERSION_PATH=${{ needs.generate_matrix.outputs.version_path }}
TARGET=${{ matrix.target }}
BASE_IMAGE=scratch BASE_IMAGE=scratch
CMD=ash CMD=ash
FILE_HOST=${{ needs.generate_matrix.outputs.file_host }} FILE_HOST=${{ needs.generate_matrix.outputs.file_host }}