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

stale-park-1622

09/27/2019, 5:45 PM
Is it possible to tag an image after its been build like the following suggestion from aws? https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html The issue is, when I build the docker image using the following:
Copy code
const image = awsx.ecr.buildAndPushImage(
    `${name}:${gitCommit}`,
    build,
    {
      repository: repository.repository,
    }
  );
it always add the 'latest' tag. I want to tag it with a git commit hash. Is there a function like 'tagAndPushImage'?
2 Views