-
Notifications
You must be signed in to change notification settings - Fork 459
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
Add a master build docker image for each commit on master branch #5777
Conversation
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.
What happens when I push documentation changes to master? Will this trigger a build? If yes, we should reconsider this "build image on master push" trigger.
@FalcoXYZ |
Sorry, I meant anything non-code related. Even if a simple refactor of text (for example) or changing some Github Action. |
@FalcoXYZ |
@FalcoXYZ |
@@ -1,20 +1,35 @@ | |||
name: '[BUILD] Docker images and publish' | |||
|
|||
on: | |||
push: |
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.
Let's change to:
push:
branches: [master]
paths:
- 'src/Nethermind/**'
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.
Done :)
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.
We need to have same think for tests... It triggers every time I commit :/
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.
What about adding
- '!src/Nethermind/*.Test'
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.
This will limit this one a bit.
but I meant that look below - I'd add some change to yaml and all nethermind unit tests will be triggered - this is worse than those micro optimizations :)
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.
I thought you mean you don't wanna trigger Docker build on any test commit. Well, if you mean that each PR commit triggers required tests, then it is what it is. As they are required, they must run anyway. Otherwise, we need to make them not required.
If you are building this on every commit on master branch it would make sense to add commit hash to tag of that build so as to quickly be able to view which commit triggered what image when going through a list of images built. |
@gat786 If I'd add a commit hash to tag, then it would be hard to trigger tests with latest master since I'd not be able to distinguish a name of a docker tag to use in external source. |
Ok |
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?