-
Notifications
You must be signed in to change notification settings - Fork 6k
Build and upload Swagger Codegen CLI Docker image on release #4912
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
Build and upload Swagger Codegen CLI Docker image on release #4912
Conversation
|
I had to add running |
|
@fehguy, I guess you are the one to have a look at this? Would you also consider manually pushing v2.2.2 og Swagger Codegen CLI to https://hub.docker.com/r/swaggerapi/swagger-codegen-cli/? |
|
@arnested one question if you don't mind. Does it mean pull request (not yet approved) will also update the docker images and push those to the docker hub? |
|
It does the same as it does for the https://hub.docker.com/r/swaggerapi/swagger-generator image. Pushing a versioned tag for future releases and pushes to |
|
Just to be clear. I'm not saying your PR introduces additional issue. Since the commands are triggered by PR (not yet approved) as well, I was wondering what if the PR has issue (e.g. due to bad changes). Would the images in docker hub still be updated regardless? If yes, then maybe we should only push |
|
Nitpicking is fine 😄 Only tags will trigger a tagged push to Docker Hub. The push to the Actually it will happen whenever the I guess it would make sense to tighten this to only pushes to master (although this is no worse than what is already done for the generator images). I'll give it shot on improving this later today. |
|
I have added a commit that should ensure pushes to Docker Hub only happens for |
|
Don't worry. Nitpicking was meant in a positive way (carring for details). |
|
Thank you, @wing328! The image was build on master and pushed to latest as it was supposed to: https://hub.docker.com/r/swaggerapi/swagger-codegen-cli/tags/ |
…-api#4912) * Run mvn in batch-mode to be less verbose on download * Build and upload Swagger Codegen CLI Docker image on release * Ensure we only push master and tags to Docker Hub
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0branch for breaking (non-backward compatible) changes.Description of the PR
Follow-up on the improved Docker stuff in #2945 this pull request adds building and uploading a Swagger Codegen CLI Docker image to Docker Hub on releases.