I'm running some docker commands (build image, log...
# python
I'm running some docker commands (build image, login to ACR, push image) in my pulumi script and gotten over the fact that they don't show up as resources (which is fine for now). However, the login command for example needs the ACR repository name, user name and password, which are outputs from pulumi resources. The docker commands run during preview already which means the outputs have no value which causes the docker commands to fail. Is there any way to make this work?
You can have the commands only run during an update by using
. You can also put the calls to run
commands inside applies to have them only run once known values are provided. In the JavaScript docket package, I believe both of these are used to build the image every time, but to only push during updates (not previews).
Thanks Luke. I'll give that a go.