-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ecr.Image does not set the "latest" tag #1149
Comments
Hi @mikhailshilkov 👋 Thanks for considering building this into I like the idea of using Pulumi for deployments which requires the build + push + deploy step during my CD pipeline. I'd like to be able to use the commit SHA to tag so I can easily map an image to source history. A few ways come to mind for me. Two explicit ways. The first being a custom param: const img = new awsx.ecr.Image(projectName, {
repositoryUrl: repo.url,
path: ".",
extraOptions: ["--platform=linux/amd64"],
tags: [gitCommitSha]
}); The second leveraging the name arg, which from what I can tell isn't really used outside of creating a unique hash internally. So it could be a custom tag on its own, but I imagine this would be quite a breaking change: const img = new awsx.ecr.Image(gitCommitSha, {
repositoryUrl: repo.url,
path: ".",
extraOptions: ["--platform=linux/amd64"]
}); Another could be using the CI provider's env var for the latest commit SHA, but this feels a bit too magical. Would love to see this so I can use Hope this helps! |
I would also find use in this feature. Having the ability to use custom tags for a few applications we have would be beneficial. We aren't looking to have the Of the two suggestions @nickdirienzo shared above above I most like the first suggestion of having an explicit As another reference, |
Agree with @ascrookes -> would also find this feature useful (explicit |
Hi, I would also like to be able to set arbitrary tags |
What happened?
Calling
ecr.Image
does not set the "latest" tag on the built image and there is no way to set additional tags.Example
This will push an image with the tag XXXXXXX-container where the XXXXXX is a numerical sha which is produced in the function
createUniqueImageName
in fileecr.Image.ts
Output of
pulumi about
CLI
Version 3.91.1
Go Version go1.21.3
Go Compiler gc
Plugins
NAME VERSION
aws 6.7.0
aws 6.7.0
awsx 2.1.1
docker 4.4.4
docker 3.6.1
nodejs unknown
Host
OS darwin
Version 14.0
Arch arm64
This project is written in nodejs: executable='/usr/local/bin/node' version='v20.6.0'
Backend
Name XXXXXX
URL XXXXX
User XXXXXXX
Organizations
Token type personal
Dependencies:
NAME VERSION
@pulumi/aws 6.7.0
@pulumi/awsx 2.1.1
@pulumi/pulumi 3.91.1
@pulumi/docker 4.4.4
typescript 5.2.2
@types/node 20.8.10
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: