diff --git a/generate.sh b/generate.sh index 5184f47..869e8ce 100755 --- a/generate.sh +++ b/generate.sh @@ -64,6 +64,10 @@ else export VERSION=$(http ${PULP_URL}status/ | jq --arg plugin $COMPONENT_NAME -r '.versions[] | select(.component == $plugin) | .version') fi +OPENAPI_PYTHON_IMAGE="${OPENAPI_PYTHON_IMAGE:-docker.io/openapitools/openapi-generator-cli:v4.3.1}" +OPENAPI_RUBY_IMAGE="${OPENAPI_RUBY_IMAGE:-docker.io/openapitools/openapi-generator-cli:v4.3.1}" +OPENAPI_TYPESCRIPT_IMAGE="${OPENAPI_TYPESCRIPT_IMAGE:-docker.io/openapitools/openapi-generator-cli:v5.2.1}" + echo ::group::BINDINGS if [ $2 = 'python' ] then @@ -72,7 +76,7 @@ then $USER_COMMAND \ --rm \ -v ${PWD}:$volume_name \ - docker.io/openapitools/openapi-generator-cli:v4.3.1 generate \ + $OPENAPI_PYTHON_IMAGE generate \ -i /local/api.json \ -g python \ -o /local/$1-client \ @@ -94,7 +98,7 @@ then $ULIMIT_COMMAND \ $USER_COMMAND \ --rm -v ${PWD}:$volume_name \ - docker.io/openapitools/openapi-generator-cli:v4.3.1 generate \ + $OPENAPI_RUBY_IMAGE generate \ -i /local/api.json \ -g ruby \ -o /local/$1-client \ @@ -110,7 +114,7 @@ then $ULIMIT_COMMAND \ $USER_COMMAND \ --rm -v ${PWD}:$volume_name \ - docker.io/openapitools/openapi-generator-cli:v5.2.1 generate \ + $OPENAPI_TYPESCRIPT_IMAGE generate \ -i /local/api.json \ -g typescript-axios \ -o /local/$1-client \