ygot icon indicating copy to clipboard operation
ygot copied to clipboard

Ygot in an OCI image?

Open n0shut opened this issue 3 years ago • 2 comments

Hi @wenovus @robshakir, I use ygot to generate structs that I later on publish as a go package. My workflows are run in CI and currently I pin the ygot version due to gnmi 0.7 dependencies.

Ygot installation is now only possible with go install command, and I wonder if you agree that it'd be cool to have an automated pipeline that packages the binary when a new semver tag is pushed in a repo and publishes the OCI image using already provided ghcr.io/openconfig registry?

This will open the doors to less involved generation pipelines. If the idea sounds good to you, I can contribute a GH actions workflow that leverages goreleaser to build the binary and package/publish the OCI artifact.

n0shut avatar Feb 03 '23 10:02 n0shut

This sounds good to me, we already have a couple packages being released: https://github.com/orgs/openconfig/packages. @robshakir any comments?

wenovus avatar Feb 03 '23 18:02 wenovus

@wenovus yes, I plan to follow the steps that were used in openconfig/gnmic project when it comes to releasing OCI artifacts. Will wait for @robshakir to comment and if/when GO is given I can look into it

n0shut avatar Feb 03 '23 21:02 n0shut