Hey all :wave:, I am using `pants publish` to push...
# general
p
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
Hmm, maybe an
experimental_shell_command
? https://www.pantsbuild.org/docs/run-shell-commands
p
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
Yes, I think that is correct, alas.