File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ jobs:
464
464
- run :
465
465
name : Create and publish docker manifest
466
466
command : |
467
- ./gradlew --no-daemon --parallel manifestDocker
467
+ ./gradlew --no-daemon --parallel -PincludeCommitHashInDockerTag=<< pipeline.parameters.include_commit_hash_in_docker_tag >> manifestDocker
468
468
- notify
469
469
470
470
extractAPISpec :
Original file line number Diff line number Diff line change @@ -633,10 +633,10 @@ task manifestDocker {
633
633
}
634
634
635
635
for (def tag in tags) {
636
- platforms. forEach { platform -> cmd + = " ${ tag} -${ platform} " }
636
+ platforms. forEach { platform -> cmd + = " ${ tag} -${ platform}${ commitHashTag } " }
637
637
exec {
638
638
executable executableAndArg[0 ]
639
- args executableAndArg[1 ], " docker manifest create ${ tag} ${ cmd} && docker manifest push ${ tag} "
639
+ args executableAndArg[1 ], " docker manifest create ${ tag}${ commitHashTag } ${ cmd} && docker manifest push ${ tag}${ commitHashTag } "
640
640
}
641
641
}
642
642
}
You can’t perform that action at this time.
0 commit comments