Skip to content

Commit

Permalink
ci: fixed script copying md5 files to workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
zaloisio committed Oct 4, 2023
1 parent 1f81219 commit c89a7bc
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,20 @@ jobs:
rm -rf ${IMAGE_PATH}/*cferom*
# Generate md5 and store images into workspace
for f in ${IMAGE_PATH}/*.{squashfs.pkgtb,w}; do
md5sum "$f" > "$f.md5"
cp "$f" workspace/release || :
done
files=("${IMAGE_PATH}"/*.squashfs.pkgtb "${IMAGE_PATH}"/*.w)
cp ${IMAGE_PATH}/*.md5 workspace/release || :
if [ ${#files[@]} -gt 0 ]; then
for f in "${files[@]}"; do
if [ -f "$f" ] && [ "${f##*.}" != "md5" ]; then
echo "Creating MD5 signature for $f"
md5sum "$f" > "workspace/release/$f.md5"
echo "Copying image $f to workspace"
cp "$f" workspace/release
fi
done
else
echo "No *.squashfs.pkgtb or *.w files found in ${IMAGE_PATH}"
fi
if [[ ${UI} == "none" ]]; then
cp /tmp/build.log workspace/release/${MODEL}-build.log
Expand Down

0 comments on commit c89a7bc

Please sign in to comment.