Skip to content

Improve release checkout script #3184

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

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions bin/utils/release_checkout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def check_homebrew
def check_openapi_generator_online_docker
print "Checking openapi-generator-online docker ... "

url = "https://hub.docker.com/r/openapitools/openapi-generator-online/tags/"
url = "https://hub.docker.com/v2/repositories/openapitools/openapi-generator-online/tags/?page_size=25&page=1"

docker_tag = "v#{$version}"
open(url) do |f|
content = f.read
Expand All @@ -56,7 +57,7 @@ def check_openapi_generator_online_docker
def check_openapi_generator_cli_docker
print "Checking openapi-generator-cli docker ... "

url = "https://hub.docker.com/r/openapitools/openapi-generator-cli/tags/"
url = "https://hub.docker.com/v2/repositories/openapitools/openapi-generator-cli/tags/?page_size=25&page=1"
docker_tag = "v#{$version}"
open(url) do |f|
content = f.read
Expand Down Expand Up @@ -202,6 +203,8 @@ def usage

puts "Running checkout on OpenAPI Generator release #{$version}"

check_openapi_generator_online_docker
check_openapi_generator_cli_docker
check_npmjs
check_homebrew
check_openapi_generator_jar
Expand All @@ -211,5 +214,3 @@ def usage
check_openapi_generator_online_jar
check_openapi_generator_project_pom
check_readme
check_openapi_generator_online_docker
check_openapi_generator_cli_docker