Skip to content

Commit

Permalink
Make sure we push docker port as int (#359)
Browse files Browse the repository at this point in the history
Fixes #262
  • Loading branch information
zeitounator authored Oct 27, 2022
1 parent 3b3b46a commit 54b7b06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/groovy/create_repos_from_list.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@ parsed_args.each { currentRepo ->

// Configs for all docker repos
if (currentRepo.format == 'docker') {
def dockerPort = currentRepo.get('http_port', '')
dockerPort = !(dockerPort instanceof String) ? dockerPort as String : dockerPort
configuration.attributes['docker'] = [
forceBasicAuth: currentRepo.force_basic_auth,
v1Enabled : currentRepo.v1_enabled,
httpPort : currentRepo.get('http_port', '')
httpPort : dockerPort?.isInteger() ? dockerPort.toInteger() : null
]
}

Expand Down

0 comments on commit 54b7b06

Please sign in to comment.