-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2019 The Linux Foundation and others.
if [ -f "$container_tag_file" ]
then
- image_name=$(yq -r .tag "$container_tag_file")
+ image_build_tag=$(yq -r .tag "$container_tag_file")
else
echo "$container_tag_file file not found. Make sure this file exists."
exit 1
fi
-
-# Write DOCKER_IMAGE information to a file so it can be injected into the
+echo "---> Tag found: $image_build_tag"
+# Write DOCKER_IMAGE_TAG information to a file so it can be injected into the
# environment for following steps
-echo "DOCKER_IMAGE=$image_name" >> "$WORKSPACE/env_docker_inject.txt"
+echo "DOCKER_IMAGE_TAG=$image_build_tag" >> "$WORKSPACE/env_docker_inject.txt"