Skip to content

Commit

Permalink
update staging image
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 5b8cdab commit 0d8f63a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vars/patchDockerImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

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 = ""
sh"""
Expand All @@ -18,5 +19,7 @@ void call(Map args = [:]) {
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}`
"""
println("docker image sucessfully pulled and inspected, exit 1 ${build_time} ${build_number}")
println("docker image successfully pulled and inspected, exit 1 ${build_time} ${build_number}")

staging_image += "${build_number}"
}

0 comments on commit 0d8f63a

Please sign in to comment.