https://pulumi.com logo
Title
m

many-yak-61188

09/03/2021, 7:01 PM
👋 I'm using this very basic example of creating a docker image and pushing to ECR
const image = repo.buildAndPushImage({
  context: '../',
});
I looked for example and documentation, but could not find an example of how to specify a label for the image - for instance i'd like to label the image
api
Does anyone have any pointers? much appreciated ty
g

great-queen-39697

09/07/2021, 4:22 PM
Are you looking to label the image (as in add a bit of metadata to the image) or actually set the name of the image in your registry? If you're labeling, I'd set it in the Dockerfile itself.
m

many-yak-61188

09/08/2021, 3:33 AM
hey laura, thanks for the response. I'm looking to add metadata and implement lifecycle policies based on that