Skip to content

Commit

Permalink
use name:version as the IMAGE_NAME during tests
Browse files Browse the repository at this point in the history
Resolves: #160
Required-by: s2i-nodejs-container#248
  • Loading branch information
pkubatrh committed Jul 29, 2020
1 parent e65a5f5 commit 24a8d12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ for dir in ${VERSIONS}; do
pushd "${dir}" > /dev/null
IMAGE_ID=$(cat .image-id)
export IMAGE_ID
IMAGE_VERSION=$(docker inspect -f "{{.Config.Labels.version}}" "$IMAGE_ID")
# Kept also IMAGE_NAME as some tests might still use that.
IMAGE_NAME=$(docker inspect -f "{{.Config.Labels.name}}" "$IMAGE_ID")
IMAGE_NAME="$(docker inspect -f "{{.Config.Labels.name}}" "$IMAGE_ID"):$IMAGE_VERSION"
export IMAGE_NAME

if [ -n "${TEST_MODE}" ]; then
Expand Down

0 comments on commit 24a8d12

Please sign in to comment.