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

feature/oonodz-integration. Integrate ooNodz workflow and create and push docker images #176

Merged

Conversation

HugoBroudeur
Copy link

@HugoBroudeur HugoBroudeur commented Mar 14, 2024

Why this should be merged

This PR aim to integrate the CI and releasing process with docker images.
It allows validator provider to directly get the Hubblenet docker image to be run.

Release notes

The following variables must be set in github:

AVALANCHE_VERSION    # Avalanche version for the current release
AVALANCHE_VERSION_DEV    # Avalanche version used on aylin

For example AVALANCHE_VERSION=v1.10.9 and AVALANCHE_VERSION_DEV=v1.11.2
image

The following secrets must be set in github:

DOCKER_PASS
DOCKER_USERNAME

This is the credentials required for pushing to https://hub.docker.com/r/hubbleexchange/hubblenet
image

How this works

It contains 2 workflow:
ci-push-image-aylin.yml
This pipeline is triggered on each commit to the branch aylin. It creates the image and tag it with the commit hash, the AVALANCHE_VERSION_DEV and the mention aylin.

The image tag will look like: hubbleexchange/hubblenet:v1.11.2-aylin-5f0fb47d23cce91b48f1f93594037ac04707dc32
This image is compatible for the testnet and the mainnet

push-image-release.yml
This pipeline is manually triggered (could be automatically triggered on workflow_run completed ['Release'] but it is out of the scope).

It requires a release tag that is found here: https://github.com/hubble-exchange/hubblenet/releases
On triggered, the github runner build a Dockerfile at runtime and then use it to create 2 release images, 1 for the mainnet and 1 for fuji.
Both images are tagged with AVALANCHE_VERSION, the hubblenet release version and for testnet it adds the "fuji" tag.

All the images are pushed to the public repo: https://hub.docker.com/r/hubbleexchange/hubblenet

How this was tested

The pipelines were fully tested on a private repository using a fork of Hubblenet and a private Dockerhub account.

How is this documented

The documentation is this PR description

atvanguard and others added 3 commits March 10, 2024 13:27
* tresor, kitkat, berghain

* resolve debas comments

* chain config

* slight refactor

* resolve lumos comments
push docker images

feature/oonodz-integration. Update variables
@atvanguard atvanguard merged commit 34e14f5 into hubble-exchange:aylin Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants