Skip to content
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

Tag and omit references to the refs file #295

Merged
merged 1 commit into from
Jul 16, 2022

Conversation

puerco
Copy link
Contributor

@puerco puerco commented Jul 16, 2022

We now tag and emit references into the refs file for all arch images to help external
tools know what we've built (for example to sign them).

Closes: #288

/cc @mattmoor

Signed-off-by: Adolfo García Veytia (Puerco) [email protected]

We now tag and emit references for al arch imges to help external
tools know what we've built (for example signing them).

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Comment on lines -246 to -248
// We only tag the images if we're building a single one
imageTags := []string{}
if len(bc.ImageConfiguration.Archs) == 1 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why we need this part of the change, or whether it regresses something 🤔

Copy link
Contributor Author

@puerco puerco Jul 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it's better if I dont pass it to the tagging function and build the reference by hand? I did it because it was returning an empty string .

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have enough context here, so I'd defer to @kaniini

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I thought you had a specific problem in mind. I think we're fine, tests are ok and I've been using this branch today ok.

@mattmoor
Copy link
Member

Once this lands, this downstream change will get pretty interesting 😉

https://github.com/distroless/static/pull/11

@puerco puerco merged commit 1b65fb9 into chainguard-dev:main Jul 16, 2022
@puerco puerco deleted the refs-2-file branch July 16, 2022 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List all images in multiarch images when using --image-refs
2 participants