-
Notifications
You must be signed in to change notification settings - Fork 144
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
Publish Docker images to GitHub Container Registry #440
Conversation
In addition to Docker Hub, publish fabric-nodeenv Docker images to GitHub Container Registry to improve availability. Also: - Remove redundant Azure Pipelines build definitions. - Update the Ubuntu image versions used for the build. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and I agree with the dual-approach from image repository.
Just one comment on the ubuntu version.
@@ -37,43 +34,45 @@ jobs: | |||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |||
|
|||
publishdocker: | |||
runs-on: ubuntu-20.04 | |||
runs-on: ubuntu-latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why shift to ubuntu-24.04
for some and ubuntu-latest
for others? Should probably keep it consistent.
Note that on fabric core we shifted everything to ubuntu-22.04
so that we'd have full control of the version and remain one level back to help with user compatibility (in case users can't yet support ubuntu-24.04 images, more important for things like fabric-ca which uses cgo in the binary build). I realize that these changes are just for the runners and not the final user image so I'm fine going to ubuntu-24.04 in this repository. Just wanted to provide you the thinking from core fabric in case you want to remain consistent with ubuntu-22.04
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24.04 is the current LTS so it seemed to make sense to shift to that instead of 22.04. I used an explicit Ubuntu release for tests and other things where it might be helpful to specify the Ubuntu version used for testing. For jobs where the version doesn't really matter, I figured ubuntu-latest meant they would stay current with minimal maintenance, and likely have access to the largest pool of hosted runners.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
In addition to Docker Hub, publish fabric-nodeenv Docker images to GitHub Container Registry to improve availability.
Also:
Contributes to hyperledger/fabric#4998
Closes #439