Skip to content

Commit

Permalink
add commit hash to docker manifest (Consensys#8233)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi authored Apr 22, 2024
1 parent 5b77c66 commit 283f5d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ jobs:
- run:
name: Create and publish docker manifest
command: |
./gradlew --no-daemon --parallel manifestDocker
./gradlew --no-daemon --parallel -PincludeCommitHashInDockerTag=<< pipeline.parameters.include_commit_hash_in_docker_tag >> manifestDocker
- notify

extractAPISpec:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,10 @@ task manifestDocker {
}

for (def tag in tags) {
platforms.forEach { platform -> cmd += "${tag}-${platform} " }
platforms.forEach { platform -> cmd += "${tag}-${platform}${commitHashTag} " }
exec {
executable executableAndArg[0]
args executableAndArg[1], "docker manifest create ${tag} ${cmd} && docker manifest push ${tag}"
args executableAndArg[1], "docker manifest create ${tag}${commitHashTag} ${cmd} && docker manifest push ${tag}${commitHashTag}"
}
}
}
Expand Down

0 comments on commit 283f5d6

Please sign in to comment.