Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
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
6 changes: 5 additions & 1 deletion .github/scripts/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,20 @@ if [ -z "$modified_files" ]; then
else
echo "Checking against modified files"
fi

# 3.Find out whether the files related with the current build were modified or not
if (grep -q "${DF_PATH#./}" <<<$modified_files) || # Rebuild the image if any file in the build folder is changed
(grep -q "build-images.sh" <<<$modified_files) ||
(grep -q "build-images.yaml" <<<$modified_files); then
(grep -q "build-images.yaml" <<<$modified_files) ||
[ "${IS_PARENT_MODIFIED}" = "true" ]; then
# if modified, then rebuild their docker image
docker buildx prune -a -f
# reference: https://github.com/docker/buildx/issues/495
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap

echo "MODIFIED=true" >> $GITHUB_ENV

if [ $image_name = "debian" ]; then
cd commons/base-os
Expand Down
Loading