I’m looking to switch from building my containers ...
# pulumi-deployments
e
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
It will automatically build the image, and the pulumi program will fail with an error if the image fails to build.
e
Excellent. Pulumi is the best!!