• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 24859780233 / 8
91%
main: 91%

Build:
DEFAULT BRANCH: main
Ran 23 Apr 2026 09:46PM UTC
Files 1204
Run time 39s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Apr 2026 09:28PM UTC coverage: 59.708% (-0.01%) from 59.719%
24859780233.8

push

github

web-flow
Feature: Support extracting file/directory artifacts from Docker image layers (#23270)

Adds `output_files`, `output_directories`, and `outputs_match_mode`
attributes to the `docker_image` target, matching the behavior of the
same target attributes of `shell_command` and `adhoc_tool`.

This effectively uses the Docker CLI arguments of `--output
type=local[,parameters]` which is the `local` exporter. Then it uses the
same glob behavior to extract and digest cache the specified files or
directories, enabling using Docker as a cache-able build environment
usable in subsequent and dependent targets.

I have tested it extensively locally for a use-case of building
out-of-tree CoreDNS plugins, and having it as a dependency on a
`run_shell_command` target that builds a custom Debian 13 LXC that
configures CoreDNS for use in the Proxmox environment.

The docs have been updated to provide a "Hello World" example. Do note
that, if there is more than one stage, or the artifacts you want to
extract are not in the last stage of the Dockerfile, you will need to
specify the `target_stage` attribute in the `docker_image` target. This
is mentioned in the docs.

Also, I fixed a minor bug where this, the `shell_command` and
`adhoc_tool` would double-warn on an unmatched path.

36589 of 61280 relevant lines covered (59.71%)

0.6 hits per line

Source Files on job test_python_linux_x86_64_5/10 - 24859780233.8
  • Tree
  • List 1204
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24859780233
  • 7c1af406 on github
  • Prev Job for on main (#24804797209.6)
  • Next Job for on main (#25030810974.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc