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 be79a7f commit e8f2b79
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions vars/patchDockerImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@ void call(Map args = [:]) {

sh"""
#!/bin/bash
docker pull ${docker_image}
"""
sh"""
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}")

build_number = sh""" 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}")
staging_image = ${staging_image} + "${build_number}"
println("staging_image: ${staging_image}")
/* Validate Digests */
Validate Digests
sh"""
#!/bin/bash
Expand All @@ -38,8 +40,5 @@ void call(Map args = [:]) {
"""
println("${prod_digest[0]} ${staging_digest[0]}")




*/
}

0 comments on commit e8f2b79

Please sign in to comment.