Skip to content

Commit

Permalink
chore script string
Browse files Browse the repository at this point in the history
  • Loading branch information
smerleCB committed Aug 4, 2023
1 parent d8060a8 commit 62cccb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vars/buildDockerAndPublishImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ def call(String imageShortName, Map userConfig=[:]) {
} else {
dockertag = 'latest'
}
String shcommand = 'docker manifest create \\'
shcommand += '"${defaultImageName}":"${dockertag}" \\'
String shcommand = 'docker manifest create \ ' + "\n"
shcommand += '"${defaultImageName}":"${dockertag}" \ ' + "\n"
finalConfig.platforms.each {eachplatform ->
specificImageName = defaultImageName + ':' + eachplatform.split('/')[1].replace('/','-')
shcommand += '--amend "${specificImageName}" \\'
shcommand += '--amend "${specificImageName}" \ ' + "\n"
}
sh shcommand
sh 'docker manifest push "${defaultImageName}":"${dockertag}"'
Expand Down

0 comments on commit 62cccb7

Please sign in to comment.