inspect-deployment: keep format strings inside the YAML block

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Miles WardandClaude Fable 5 committed 2026-09-11 11:42:58 -04:00
1 parent 95754b9124
commit d6a97dd8ea
1 file changed
+7 -7
+7 -7
View File
@@ -28,13 +28,13 @@ jobs:
exit 1
fi
echo "== $C =="
docker inspect --format 'image ref: {{.Config.Image}}
image id: {{.Image}}
state: {{.State.Status}} (started {{.State.StartedAt}})
entrypoint: {{json .Config.Entrypoint}}
cmd: {{json .Config.Cmd}}
user: {{json .Config.User}}
mounts: {{range .Mounts}}{{.Source}} -> {{.Destination}}; {{end}}' "$C"
docker inspect --format 'image ref: {{.Config.Image}}' "$C"
docker inspect --format 'image id: {{.Image}}' "$C"
docker inspect --format 'state: {{.State.Status}} (started {{.State.StartedAt}})' "$C"
docker inspect --format 'entrypoint: {{json .Config.Entrypoint}}' "$C"
docker inspect --format 'cmd: {{json .Config.Cmd}}' "$C"
docker inspect --format 'user: {{json .Config.User}}' "$C"
docker inspect --format 'mounts: {{range .Mounts}}{{.Source}} -> {{.Destination}}; {{end}}' "$C"
IMG=$(docker inspect --format '{{.Image}}' "$C")
echo "image digests: $(docker image inspect --format '{{json .RepoDigests}}' "$IMG")"
echo "image labels: $(docker image inspect --format '{{json .Config.Labels}}' "$IMG" | grep -o '"dev.milesward[^,}]*' | tr '\n' ' ' || true)"