containernetworking / plugins

Some reference and example networking plugins, maintained by the CNI team.
Apache License 2.0
2.23k stars 788 forks source link

Add github action to build binaries for each platform at release #1000

Closed s1061123 closed 9 months ago

s1061123 commented 10 months ago

This change introduces new github action to build cni plugin binaries for each platform at tagged new release.

s1061123 commented 10 months ago

Here is the sample release with my temporaly cloned repo with PR code: https://github.com/s1061123/plugins-test-repo/releases

s1061123 commented 10 months ago

@squeed Before merge the PR, you may need to change repository config change as following:

"Setting (in Repositories)" -> "Actions (General)" -> "Workflow permissions": Change it to 'Read and write permissions"

squeed commented 10 months ago

@s1061123 this is awesome! Thanks so much! Let's figure out the right way to set the go version and get this merged.

s1061123 commented 10 months ago

@squeed Regarding shared variables in github action, we may use 'configuration variables' in github, available at repository config web UI.

https://github.blog/changelog/2023-01-10-github-actions-support-for-configuration-variables-in-workflows/

This requires to change repository setting, so I cannot care that. Please change web UI and this PR (you can pull my branch and you can modify the branch directly as 'Allow edits and access to secrets by maintainers' enabled)