elegant-florist-94385
11/18/2024, 10:44 PMdocker_image
target that I would like to only build in CI (not locally during development). My local setup doesn't have all the resources/configurations needed to build this particular image.
I could go about this by running pants package carefully/crafted/paths/to:sources
when developing locally, but I would really love to just use pants package ::
Is there a good way to indicate that a particular docker_image
should be skipped by the package goal? (So I can use it with env("IS_CI")
or similar)fierce-truck-19259
11/18/2024, 11:08 PMpants --filter-target-type='-docker_image' package ::
and there's having a pants.ci.toml
, not sure you can get exactly what you are afterfierce-truck-19259
11/18/2024, 11:16 PMpants.toml
like
[cli.alias]
package-local = "--filter-target-type='-docker_image' package"
Then you would have pants package-local ::
elegant-florist-94385
11/18/2024, 11:22 PMtag
or something we could get filter to workfierce-truck-19259
11/18/2024, 11:23 PMfilter-address-regex
instead and target it exactly thenfierce-truck-19259
11/18/2024, 11:24 PMfierce-truck-19259
11/18/2024, 11:25 PMfilter-tag-regex
toofierce-truck-19259
11/18/2024, 11:28 PMpants --tag='-skip_local' package ::
elegant-florist-94385
11/18/2024, 11:33 PMhappy-kitchen-89482
11/19/2024, 7:35 PMhappy-kitchen-89482
11/19/2024, 7:35 PMhappy-kitchen-89482
11/19/2024, 7:37 PMhappy-kitchen-89482
11/19/2024, 7:37 PMhappy-kitchen-89482
11/19/2024, 7:37 PMhappy-kitchen-89482
11/19/2024, 7:38 PM