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 62cccb7 commit d1402e8
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 \ ' + "\n"
shcommand += '"${defaultImageName}":"${dockertag}" \ ' + "\n"
String shcommand = 'docker manifest create \\ ' + "\n"
shcommand += '"${defaultImageName}":"${dockertag}" \\ ' + "\n"
finalConfig.platforms.each {eachplatform ->
specificImageName = defaultImageName + ':' + eachplatform.split('/')[1].replace('/','-')
shcommand += '--amend "${specificImageName}" \ ' + "\n"
shcommand += '--amend "${specificImageName}" \\ ' + "\n"
}
sh shcommand
sh 'docker manifest push "${defaultImageName}":"${dockertag}"'
Expand Down

0 comments on commit d1402e8

Please sign in to comment.