plugins icon indicating copy to clipboard operation
plugins copied to clipboard

enhancement(ci): Add release docker image

Open leojonathanoh opened this issue 2 years ago • 20 comments

This adds a multiarch docker image, based on previous work in #245.

Since I'm not an approved collaborator on this repo with read access to repository secrets, the CI will not be able to login to Docker Hub and push images. To show it works, I'm building the same branch on my fork PR to demonstrate that it works. https://github.com/leojonathanoh/plugins/pull/1

TODO

  • [x] Dockerfile to build CNI plugins. Bonus points for playing nice with dependabot.
  • [x] Multiarch Dockerfile for released "installer" image
  • [x] Fixup release.sh to use this (or some equivalent)
  • [x] Build releases automatically via GitHub and push them to ghcr
  • [x] Cosign all the things! (might need validation)

Implements #806

Signed-off-by: Leonard Jonathan Oh [email protected]

leojonathanoh avatar Mar 01 '23 09:03 leojonathanoh

This looks awesome! Thanks so much for taking this on!

I have a few small requests, but they're just the cherry on top. If you've got time, that'd be great, but I really want to get this in.

(p.s. this needs a signed-off-by :-) )

squeed avatar Mar 03 '23 10:03 squeed

Also, looks like the new yamllint is mad at something :-p

squeed avatar Mar 03 '23 10:03 squeed

Do i have to signoff all commits? Or just in the PR body?

leojonathanoh avatar Mar 03 '23 16:03 leojonathanoh

Do i have to signoff all commits? Or just in the PR body?

All commits :-).

squeed avatar Mar 06 '23 16:03 squeed

But we should squash this down to one or two commits before merging.

squeed avatar Mar 06 '23 16:03 squeed

All commits :-).

But we should squash this down to one or two commits before merging.

will squash it down and sign once the PR is done :)

leojonathanoh avatar Mar 06 '23 19:03 leojonathanoh

oh yes, I was wondering about how to tie the release CI process with this docker image's binaries, so there is one source of binaries as discussed in https://github.com/containernetworking/plugins/pull/245#issuecomment-448717245. Can't seem to find out how the release process goes as far as looking around.

leojonathanoh avatar Mar 06 '23 19:03 leojonathanoh

squashed my commits down and signed off. i'm not sure what to do with whether previous work should be signed off too?

leojonathanoh avatar Mar 23 '23 13:03 leojonathanoh

@leojonathanoh can you rebase on main and squash to a single commit please? Then we can get this awesome PR merged!

squeed avatar May 09 '23 11:05 squeed

sure, i'll do this tomorrow when i manage to get some time.

leojonathanoh avatar May 10 '23 08:05 leojonathanoh

Any update on this PR @squeed ? Squash and merge and release 🚀

onedr0p avatar Nov 05 '23 14:11 onedr0p

@leojonathanoh looks like you might need to rebase and fix any conflicts since it's taken this long for a merge :/

onedr0p avatar Dec 08 '23 19:12 onedr0p

Sure 😄

leojonathanoh avatar Dec 09 '23 01:12 leojonathanoh

Passed on my fork, see https://github.com/leojonathanoh/plugins/pull/1, where I have fork secrets that don't work on the CI here.

Before merging, will need to remove the code marked with TODO in the CI files.

leojonathanoh avatar Dec 12 '23 12:12 leojonathanoh

It's unfortunate that this as been pending so long, it seems like the maintainers are ignoring this or don't find value in this PR 😭

onedr0p avatar Jan 02 '24 14:01 onedr0p

it's fine 😄 perhaps it will get merged. Guess not many in the community need a docker image for updating plugins 😬

leojonathanoh avatar Jan 03 '24 13:01 leojonathanoh

@leojonathanoh hello, sorry things get lost in the shuffle! The best way is to join the weekly sync and put an item on the agenda! Sorry for the delay!

MikeZappa87 avatar Jan 08 '24 15:01 MikeZappa87

it's fine 😄 perhaps it will get merged. Guess not many in the community need a docker image for updating plugins 😬

Hello,

I was the author of the initial request (#245). After a few years I'm back to "multus-cni" and had the hope this is meanwhile merged :-( Just wanted you to know that this is one of the use cases where a docker image of the plugins would be really helpful.

micw avatar Apr 21 '24 11:04 micw

it's fine 😄 perhaps it will get merged. Guess not many in the community need a docker image for updating plugins 😬

Hello,

I was the author of the initial request (#245). After a few years I'm back to "multus-cni" and had the hope this is meanwhile merged :-( Just wanted you to know that this is one of the use cases where a docker image of the plugins would be really helpful.

Thanks for your previous work. Hope to see this merged too 😄

leojonathanoh avatar Apr 21 '24 14:04 leojonathanoh

image

onedr0p avatar Apr 21 '24 15:04 onedr0p