-
-
Notifications
You must be signed in to change notification settings - Fork 33
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 on PR's should build the Docker image #50
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Hi @smoya 👋 Can I work on this? |
@HarshCasper Hi! Yes, you can :) However, testing is done by this workflow https://github.com/asyncapi/server-api/blob/master/.github/workflows/if-nodejs-pr-testing.yml but we cannot update it, because the source for this workflow is located here https://github.com/asyncapi/.github/blob/master/.github/workflows/if-nodejs-pr-testing.yml Even if you change something on this repo (in the source of that workflow) in future it will be overwritten by I suggest you to make something like we do with release process -> https://github.com/asyncapi/server-api/blob/master/package.json#L39 So we need to run build of docker image when workflow will run I hope you understand. |
Thanks for the general overview! I wish to propose a slightly different solution: Running Docker build with We can make a new action on Let me know what you think. It would be just one more YAML (🙃) but something that would simplify the workflow for developers who might not want to build an entire image while testing their code. |
@HarshCasper You're right! I forgot that it will be also running on all OS. Hmm 🤔 We can create new workflow only for this repository, however in our organization we publish also another tools as Docker Image, so we should enable that workflow for all repositories. As you wrote it should be located in the I think that we can run cc @smoya @derberg You should be interested with that topic. |
Hi @magicmatatjahu 👋 This would be an interesting problem with a fairly easy solution. We can create a We can add an |
I don't like that solution. In this repo and also in
So as I wrote, we need to contribute to the |
Ah, got it. It's understandable now. Thanks, @magicmatatjahu for penning it down! |
I think the best would be to have independent workflow, nodejs/go agnostic that just runs I'm working now on global action to support "topic" filter per workflow file. So we will be able to say that |
@derberg Yeah, but have in mind that for example in this repo we publish Docker Image using |
sorry I didn't get this part |
@magicmatatjahu ping 😉 |
|
Hi @derberg @magicmatatjahu The project has a |
best would be to come up already with the "agnostic" approach |
Handled by asyncapi/.github#147 |
Reason/Context
We only build the Docker image right after creating a new release, where we are building and pushing the image to Docker hub.
In the case there is a bug on the image (or anything that runs on it), we won't notice until then, meaning we could have been merging code that breaks.
This is an example of a bug we could catch most probably way earlier (even though it could not be related with a bug introduced by us): https://github.com/asyncapi/server-api/runs/5127206219?check_suite_focus=true
Description
Consider running CI tests within Docker.
The text was updated successfully, but these errors were encountered: