Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm committed Jul 10, 2023
1 parent e0ce788 commit 087ed79
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vars/patchDockerImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ void call(Map args = [:]) {
docker pull ${docker_image}
"""
sh """docker inspect --format '{{ index .Config.Labels "org.label-schema.build-date"}}' ${docker_image} > build_time"""
build_time = readFile('build_time').trim()
sh """docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image} > build_number"""
build_number = readFile('build_number').trim()
build_time = readFile('build_time').trim()
println("${result} ${build_time}")
sh """docker inspect --format '{{ index .Config.Labels "org.label-schema.build-date"}}' ${docker_image} > time"""
build_time = readFile('time').trim()
sh """docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image} > number"""
build_number = readFile('number').trim()
build_time = readFile('time').trim()
println("${number} ${time}")

staging_image = ${staging_image} + "${build_number}"

Expand Down

0 comments on commit 087ed79

Please sign in to comment.