Skip to content

Commit 4e24d3e

Browse files
committed
Anchor the renderer inputs grep to the image line
1 parent cd810c5 commit 4e24d3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ jobs:
688688
deps=$(echo "$tree" | grep -v ' (/')
689689
# shellcheck disable=SC2086
690690
# The image release-bins compiles it in (its `container:`) is an input too.
691-
hash=$( { git ls-files -s docker/renderer.Dockerfile docker/renderer.version rust-toolchain.toml $paths; grep -v '^version = ' Cargo.toml; echo "$deps"; grep -m1 'image: ghcr.io/docspring/mirror/rust:' .github/workflows/ci.yml; } | sha256sum | cut -c1-24)
691+
hash=$( { git ls-files -s docker/renderer.Dockerfile docker/renderer.version rust-toolchain.toml $paths; grep -v '^version = ' Cargo.toml; echo "$deps"; grep -m1 '^ *image: ghcr.io/docspring/mirror/rust:' .github/workflows/ci.yml; } | sha256sum | cut -c1-24)
692692
echo "tag=ghcr.io/docspring/visualci-renderer:inputs-$hash" >>"$GITHUB_OUTPUT"
693693
if digest=$(docker buildx imagetools inspect "ghcr.io/docspring/visualci-renderer:inputs-$hash" --format '{{json .Manifest}}' 2>/dev/null | python3 -c 'import json,sys; print(json.load(sys.stdin)["digest"])'); then
694694
echo "existing=$digest" >>"$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)