-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
chore: improve docker release pipeline #675
chore: improve docker release pipeline #675
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.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
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.
can you share what would you use ASYNCAPI_CLI_VERSION
for? what is the use case for? cause for sure not development as we anyway take sources from npm
Dockerfile
Outdated
@@ -1,3 +1,5 @@ | |||
ARG ASYNCAPI_CLI_VERSION=0.50.0 |
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.
ok, now I see where 0.50
got from in the generator PR 😄
anyway, why not latest?
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.
Copy pastes be like that. So let me copy the same answer 😆
It's possible that the latest version will cache and you will end up with a docker image with an invalid generator version. With an argument, you can test past versions locally and ensure that you install the right generator version. Seems like a declarative approach.
Now that I think about it we should after the build actually "test" if the installed version inside the image is the same as release
acd0b7c
to
e9daf95
Compare
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.
@Ferror hey, we will need the same timeout as I mentioned in the generator PR. Can you add it. Afaik workflows now support it natively
Can you elaborate on what it supports natively? I was more convinced to go with https://docs.github.com/en/actions/using-workflows/reusing-workflows |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@derberg I think I put it all together, but to be honest I find the pipelines weirdly complex. And to have it cohesive must be a different pair of boots 😢 |
@Ferror sorry, I probably did not explain myself correct, and used phrase so basically, docker releases run on
but when I worked on the pipeline, we had random fails of docker publishing, and the conclusion was, after some investigation, that the fact that "logs say" package is published on this is why we had this https://github.com/asyncapi/generator/blob/master/.github/workflows/release-docker.yml#L26 in pipeline for generator docker release. now, after 3y and name: Short docker release delay
run: sleep 1m #docker image installs generator from npm, this sleep protects this step from any delays on npm side sorry again for lame initial explanation |
@Ferror yo, do you plan to continue with this one? would be great |
Yea. I forgot about it. I will add some improvements like we did for generator and we can release it :) |
8d51d7c
to
3d19139
Compare
@Ferror sorry but can you make the bot happy? https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&pullRequest=675&id=asyncapi_cli&open=AYuBP0gk3G4WvsAlhREI&tab=why |
61d0836
to
e0b1563
Compare
99146fc
to
97764e0
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
@Ferror 1s sleep is not enough. It was 1m originally. We can try 30s now (just changed) and in case it actually still should be 1m we can always modify pipeline. But going with 1s should be avoided |
/rtm |
🎉 This PR is included in version 1.2.24 🎉 The release is available on: Your semantic-release bot 📦🚀 |
A couple of improvements related to the docker release pipeline.