Skip to content
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

feat: dockerfile and github actions push to ghcr #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

koraykoska
Copy link

This PR adds a Dockerfile to build a docker image. Also, it creates a Github Actions workflow to push to the Github Container Registry. All of that is free for Open Source repositories and no extra configuration is needed in the repo to make it work.

You can check https://github.com/chainnodesorg/brevis-avs for an example and especially the below:

Actions Workflow:
https://github.com/chainnodesorg/brevis-avs/actions/workflows/dockerimage.yml

Github Container Registry:
https://github.com/chainnodesorg/brevis-avs/pkgs/container/brevis-avs

The workflow was made in a way that all pushes are built and tagged by commit hash, pushes to main are tagged as latest additionally and tag releases are tagged as the tag name additionally.

That way multiple workflows are supported. e.g. Our fork version currently hosts a tagged docker image:

docker pull ghcr.io/chainnodesorg/brevis-avs:0.1.0

If merged and a git tag is pushed, the README can be extended to mention that official images are on the following:

ghcr.io/brevis-network/brevis-avs:0.1.0

Or any other tag.

@koraykoska
Copy link
Author

@hezhihua81 @AntiD2ta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants