-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add labels with base image information to docker images #14650
Comments
@N-Usha Are you okay with these labels? |
@ninallam Can you please review the labels? |
@ajinkya599, @DS-MS and @ammohant discussed this and here are our thoughts on the required changes:
|
The above approach looks good.
Regarding giving a control the to add the new labels, we should have this in Docker V2. For Docker V0, V1 we will add these labels by default. If customers want to turn off the labels they should upgrade to the latest version. This control should be a first class input in the task as it is more discoverable. This will also align with the existing input we have for Pipeline data. Please note we will have to upgrade the minor version for Docker V2 once we add the new input field. |
@ninallam - Shouldn't we have a way to turn it off even for the older versions as well? The idea is to have a quick mitigation if hypothetically it breaks something for the users. The default can be on in all the versions. |
@ajinkya599 If we meed a quick mitigation, let's have a similar task input for all the versions of the task. |
This feature always pulls the latest image so the cache on the build agents can't be fully used without disabling it. |
Is it possible to add this variable into official task documentation? |
Required Information
Question, Bug, or Feature?
Type: Feature
Enter Task Name: Docker
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Issue Description
Add labels org.opencontainers.image.base.digest with the base image digest and org.opencontainers.image.base.ref.name for the base image name. In the case of multistage builds use the latest base image.
This information can be used for other tasks that extract metadata from the image that was just built.
The text was updated successfully, but these errors were encountered: