-
Notifications
You must be signed in to change notification settings - Fork 14
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
Version 4.x: Additional tags are not pushed remotely #549
Comments
As a workaround, you can just define a second image
|
The workaround does the job. I also ensure that the tagged image depends on the original image const demoImage = new docker.Image("demo-image", {
build: {
context: ".",
dockerfile: "Dockerfile",
},
imageName: "test/image:bar"
});
const demoImageTag = new docker.Image("demo-image-tag", {
build: {
context: ".",
dockerfile: "Dockerfile",
},
imageName: "test/image:foo"
}, {
dependsOn: [
demoImage
]
}) |
As per #581, there does seem to be a desire for this to be a full enhancement! Re- opening this for planning purposes. |
I've got a use case this might apply to, where I want to tag images with a timestamp of when they're created. However, I still want to rely on the normal behavior of the provider to only trigger rebuilds on context changes. So I want the option to have that tag ignored when calculating diffs and triggering resource updates. (The Unclear to me if this is best supported by use of additional tags with an option to ignore them in diffs, or by a |
Hello!
Issue details
When creating an Image that points to a remote
host
any additional tag is not pushed remotely as wellThe following code:
bar
to the remotehost
foo
is only created locallyI am looking for a way to be able to push
foo
tohost
as well.@jaxxstorm suggested the following improvement:
The text was updated successfully, but these errors were encountered: