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 310d540 commit 1451040
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vars/patchDockerImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
void call(Map args = [:]) {
String docker_image = "opensearchproject/${args.product}:${args.version}"
String staging_image = "opensearchstaging/${args.product}:${args.version}."
String build_time = ""
String build_number = ""
String prod_digest = ""
String staging_digest = ""
Expand All @@ -20,8 +19,8 @@ void call(Map args = [:]) {
docker pull ${docker_image}
${build_time}=`docker inspect --format '{{ index .Config.Labels "org.label-schema.build-date"}}' ${docker_image}`
build_number=`docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image}`
export build_time=`docker inspect --format '{{ index .Config.Labels "org.label-schema.build-date"}}' ${docker_image}`
export build_number=`docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image}`
"""
println("docker image successfully pulled and inspected, exit 1 ${build_time} ${build_number}")

Expand Down

0 comments on commit 1451040

Please sign in to comment.