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 a55cbfb commit 2a5ce1b
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 @@ -17,14 +17,17 @@ void call(Map args = [:]) {

sh"""
#!/bin/bash
set -e
set +x
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}`
"""

$build_number = sh""" docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image} """
build_number = sh "`docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image}`"
println("${build_number}")
/*
staging_image = ${staging_image} + "${build_number}"
Expand Down

0 comments on commit 2a5ce1b

Please sign in to comment.