has anyone used pants for selectively deploying ap...
# general
f
has anyone used pants for selectively deploying applications? I’m curious how pants fits into your CI/CD pipelines. I’m specifically looking at cdk based deployments which I’ve read some older threads on
r
I wrote a plugin that integrates with my company's in-house gitops. Basically we have a target for each application that knows where to update it's reference and does that.
f
did you use the experimental deployment target type for that or something else? (I’m brand new to pants) I found that
run_shell_command
can’t reference another
run_shell_command
so I’m not able to create a dependency chain of targets that way, but I wasn’t sure if that just a limitation of the run_shell_command or of all run goal types
r
I used a custom goal and target type. I'm not familiar with the shell backend so I'm not sure what sort of dependency inference it's capable of. Maybe try wrapping your scripts in a
shell_sources
target and set that as a dependency for your
run_shell_command
target.
f
I don’t think thats exactly what I want, because I wanted both run targets to execute in order. Do you have any code you could link to for a custom goal / target? Otherwise I’ll read through https://www.pantsbuild.org/docs/rules-api-goal-rules