https://pantsbuild.org/ logo
#general
Title
# general
p

plain-truck-80265

08/17/2022, 5:15 AM
Hey all 👋, I am using
pants publish
to push Docker images into ECR. It works great, but the problem of ECR is that you must have repo created before you push the iamge (https://github.com/aws/containers-roadmap/issues/853) , otherwise you see couple of retryings. Is there any elagant way how to run some command before
pants
do a docker push? Thank you
h

happy-kitchen-89482

08/17/2022, 4:09 PM
Hmm, maybe an
experimental_shell_command
? https://www.pantsbuild.org/docs/run-shell-commands
p

plain-truck-80265

08/17/2022, 8:50 PM
Thank you @happy-kitchen-89482 , was thinking about it too. But if I am not mistaken
experimental_shell_command
would also run for
pants package
and not only for
pants publish
, right?
h

happy-kitchen-89482

08/17/2022, 8:58 PM
Yes, I think that is correct, alas.
11 Views