Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,18 +470,18 @@ jobs:
- name: Generate build args
id: build_args
run: |
echo 'args<<EOF
TARGET=${{ matrix.target }}
TARGET_TAG="${TARGET//\//-}"
DOWNLOAD_FILE=openwrt-${TARGET_TAG}-rootfs.tar.gz
TARGET='${{ matrix.target }}'
echo "args<<EOF
TARGET=$TARGET
DOWNLOAD_FILE=openwrt-.*${TARGET//\//-}-\(default-\)\?rootfs.tar.gz
WORKDIR=/
USER=root
VERSION_PATH=${{ needs.generate_matrix.outputs.version_path }}
BASE_IMAGE=scratch
CMD=ash
FILE_HOST=${{ needs.generate_matrix.outputs.file_host }}
RUN_SETUP=${{ needs.generate_matrix.outputs.run_setup }}
EOF' >> $GITHUB_OUTPUT
EOF" >> $GITHUB_OUTPUT

- name: Build
id: build
Expand Down
5 changes: 5 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ gpg --with-fingerprint --verify sha256sums.asc sha256sums
# determine archive name
file_name="$(grep "$DOWNLOAD_FILE" sha256sums | cut -d "*" -f 2)"

if [ -z "$file_name" ]; then
echo "No file matching '$DOWNLOAD_FILE' found in sha256sums" >&2
exit 1
fi

# download imagebuilder/sdk archive
wget -nv "$FILE_HOST/$DOWNLOAD_PATH/$file_name"

Expand Down
Loading