Skip to content

Commit 9ebe449

Browse files
committed
Enhance image change detection in docker.yaml by checking base images and modifying loop for better handling
Signed-off-by: Moritz Friedrich <moritz@matchory.com>
1 parent b7bedd4 commit 9ebe449

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@ jobs:
7474

7575
# language=bash
7676
run: |
77+
# Check if the base images have changed
78+
7779
# If not a scheduled run, always consider the images changed
7880
if [[ "${GITHUB_EVENT_NAME}" != "schedule" ]]; then
7981
echo changed=true >> "${GITHUB_OUTPUT}"
8082
exit 0
8183
fi
8284
8385
digests=()
84-
for image in "${base_images}"; do
86+
for image in $(echo "${base_images}" | tr ' ' '\n'); do
8587
8688
# Fetch image manifest without pulling the full image, so we can extract the digests
8789
manifest=$(docker manifest inspect "${image}")

0 commit comments

Comments
 (0)