victorious-hospital-43523
01/26/2025, 6:38 PMimage = awsx.ecr.Image(
"xxx-image",
awsx.ecr.ImageArgs(
repository_url=xxx_repo.url, context="../../",
cache_from=[
pulumi.Output.concat(xxx_repor.url, ":latest")
],
dockerfile="../../apps/xxx/Dockerfile",
image_name="xxx",
image_tag="latest",
platform="linux/amd64"
),
)
I cannot get the cache from to work, its always rebuilding the image and this makes up takes some time, also when i take a look at ecr I'm getting
What would be the best flow for production application, should I separate build and push to ecr and only keep in pulumi ref to the build image (eg tag or something?) Basically wondering on how to handle deployments with CI/CD, building and all that stuff.modern-zebra-45309
01/26/2025, 9:13 PMawsx.RegistryImage
as in this example. As noted in the comment in line 11, you don't have to build the image through Pulumi, it just has to be available locally. So if you already have the image building with caching etc. figured out, that's probably your easiest path forward.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by