Skip to content

Commit 283f5d6

Browse files
authored
add commit hash to docker manifest (Consensys#8233)
1 parent 5b77c66 commit 283f5d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ jobs:
464464
- run:
465465
name: Create and publish docker manifest
466466
command: |
467-
./gradlew --no-daemon --parallel manifestDocker
467+
./gradlew --no-daemon --parallel -PincludeCommitHashInDockerTag=<< pipeline.parameters.include_commit_hash_in_docker_tag >> manifestDocker
468468
- notify
469469

470470
extractAPISpec:

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,10 @@ task manifestDocker {
633633
}
634634

635635
for (def tag in tags) {
636-
platforms.forEach { platform -> cmd += "${tag}-${platform} " }
636+
platforms.forEach { platform -> cmd += "${tag}-${platform}${commitHashTag} " }
637637
exec {
638638
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}"
640640
}
641641
}
642642
}

0 commit comments

Comments
 (0)