Skip to content

Commit

Permalink
Old Buildah does not support --filter=dangling
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Oct 16, 2023
1 parent a783cac commit c4498fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/base-glibc-busybox-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,13 @@ jobs:
for tag in ${{ steps.calculate.outputs.tags }} ; do
buildah manifest inspect "${image}:${tag}" \
| jq -r '.manifests[]|.digest' \
| xargs -I'{}' buildah images --quiet --filter=digest='{}'
done | sort -u
| while read id ; do
buildah images --format '{{.ID}}{{.Digest}}' \
| sed -n "s/${id}//p"
done
done
)"
ids="$( printf %s ${ids} | sort -u )"
for id in ${ids} ; do
podman history "${id}"
buildah bud \
Expand Down Expand Up @@ -155,9 +159,13 @@ jobs:
for tag in ${{ steps.calculate.outputs.tags }} ; do
buildah manifest inspect "${image}:${tag}" \
| jq -r '.manifests[]|.digest' \
| xargs -I'{}' buildah images --quiet --filter=digest='{}'
done | sort -u
| while read id ; do
buildah images --format '{{.ID}}{{.Digest}}' \
| sed -n "s/${id}//p"
done
done
)"
ids="$( printf %s ${ids} | sort -u )"
for id in ${ids} ; do
podman history "${id}"
buildah bud \
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/base-glibc-debian-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ jobs:
for tag in ${{ steps.calculate.outputs.tags }} ; do
buildah manifest inspect "${image}:${tag}" \
| jq -r '.manifests[]|.digest' \
| xargs -I'{}' buildah images --quiet --filter=digest='{}'
done | sort -u
| while read id ; do
buildah images --format '{{.ID}}{{.Digest}}' \
| sed -n "s/${id}//p"
done
done
)"
ids="$( printf %s ${ids} | sort -u )"
for id in ${ids} ; do
podman history "${id}"
buildah bud \
Expand Down Expand Up @@ -147,9 +151,13 @@ jobs:
for tag in ${{ steps.calculate.outputs.tags }} ; do
buildah manifest inspect "${image}:${tag}" \
| jq -r '.manifests[]|.digest' \
| xargs -I'{}' buildah images --quiet --filter=digest='{}'
done | sort -u
| while read id ; do
buildah images --format '{{.ID}}{{.Digest}}' \
| sed -n "s/${id}//p"
done
done
)"
ids="$( printf %s ${ids} | sort -u )"
for id in ${ids} ; do
podman history "${id}"
buildah bud \
Expand Down

0 comments on commit c4498fd

Please sign in to comment.