https://pulumi.com logo
#pulumi-deployments
Title
# pulumi-deployments
e

elegant-gigabyte-8733

06/12/2023, 10:09 PM
I’m looking to switch from building my containers as part of Github Actions to Pulumi deployments. It’s a little unclear to me if this will automatically build the image and what it will do if the image fails to build
Copy code
const customImage = new docker.Image("customImage", {
  imageName: `${registry.server}/${imageName}`,
  build: {
    context: "./path/to/your/dockerfile",
  },
  registry: {
    server: registry.server,
    username: registry.username,
    password: registry.password,
  },
});
l

lemon-agent-27707

06/13/2023, 5:20 AM
It will automatically build the image, and the pulumi program will fail with an error if the image fails to build.
e

elegant-gigabyte-8733

06/13/2023, 1:57 PM
Excellent. Pulumi is the best!!