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

CI: add GHA to build/publish Docker image #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sergejparity
Copy link

Resolves https://github.com/paritytech/ci_cd/issues/830

GHA introduced by this PR tests building of Docker image in PR's.
And builds/publishes Docker image to hub.docker.com when PR is merged to master branch.

!!! BEFORE MERGE
Setup environment master and add there secrets DOCKERHUB_USERNAME and DOCKERHUB_PASSWORD

@sergejparity sergejparity requested review from ascjones, cmichi and a team as code owners January 18, 2024 10:41
Copy link
Contributor

@alvicsam alvicsam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created environment and added secrets


on:
push:
branches:
Copy link
Contributor

@smiasojed smiasojed Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should not upload docker image on push to master because we are going to upload to this branch stats from benchmark execution each day.
I see 2 options:

  1. push the benchmarks stats to a different branch, maybe gh-pages?
  2. before uploading docker we should check if anything has change apart of stats

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smiasojed But what will be the pattern (files or folders) of changes? Stats will be pushed to some folder?
So we can setup paths/paths-ignore for push events which will lead to release of new Docker image.

Copy link
Contributor

@smiasojed smiasojed Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

results/.csv results/.png

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we can just ignore whole results folder?

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.

None yet

3 participants