Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 4b8ed1e

Browse files
committed
Improve buildkit-isms ignoring during build/history check
1 parent da3edfa commit 4b8ed1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/history.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ docker image history --no-trunc --format '{{ .CreatedBy }}' "$@" \
1919
sub(/^\/bin\/sh[[:space:]]+-c[[:space:]]+/, "")
2020
sub(/[[:space:]]*# buildkit$/, "")
2121
}
22-
$1 == "EXPOSE" { gsub(/map\[|\/tcp:\{\}\]/, "") }
22+
$1 == "EXPOSE" { gsub(/map\[|\/tcp:\{\}|\]/, "") }
2323
# buildkit makes COPY expressions hyper-simplified ("COPY --chown=1000:0 --from=foo /foo /bar" becomes just "COPY /foo /bar" vs "COPY --chown=1000:0 dir:xxxx in /bar")
2424
$1 == "COPY" { $0 = gensub(/^[[:space:]]*(COPY)[[:space:]]+([^[:space:]]+[[:space:]]+)+([^[:space:]]+)[[:space:]]*$/, "\\1 ... \\3", 1) }
2525

0 commit comments

Comments
 (0)