https://pulumi.com logo
#general
Title
# general
i

icy-controller-6092

01/11/2024, 1:18 PM
if I'm building my docker images outside the pulumi step, is there a pulumi resource that lets me push that to a remote registry? I've tried docker.Image, docker.RemoteImage, and awsx.ecr.Image but they all fail because they expect build arg
not too sure why the default is to embed potentially expensive image builds into the pulumi work graph
d

dry-keyboard-94795

01/11/2024, 1:35 PM
It'd be
docker.RegistryImage
I generally just push with docker during the build process though
i

icy-controller-6092

01/11/2024, 1:39 PM
that'd be my ideal choice too, but the ECR repository is only available in the pulumi program (via a stack ref) I suppose I could get the repo URL earlier in the build process using
pulumi stack output
i

important-energy-56546

01/11/2024, 7:07 PM
I had the same problem, and ended up pushing before running pulumi. I did entertain running artifactory locally and shuffling things around.