openconfig / ygot

A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
Apache License 2.0
286 stars 107 forks source link

Ygot in an OCI image? #770

Open n0shut opened 1 year ago

n0shut commented 1 year ago

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.

wenovus commented 1 year ago

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

n0shut commented 1 year ago

@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