# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2019 The Linux Foundation and others.
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2019 The Linux Foundation and others.
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
# Gets the container tag per $CONTAINER_TAG_METHOD
# For YAML file use directory $CONTAINER_TAG_YAML_DIR
# Gets the container tag per $CONTAINER_TAG_METHOD
# For YAML file use directory $CONTAINER_TAG_YAML_DIR
elif [[ $CONTAINER_TAG_METHOD == "git-describe" ]]; then
tag=$(git describe)
elif [[ $CONTAINER_TAG_METHOD == "yaml-file" ]]; then
elif [[ $CONTAINER_TAG_METHOD == "git-describe" ]]; then
tag=$(git describe)
elif [[ $CONTAINER_TAG_METHOD == "yaml-file" ]]; then
dir=${CONTAINER_TAG_YAML_DIR:-$DOCKER_ROOT}
tag_file=$dir/container-tag.yaml
if [[ -f $tag_file ]]; then
dir=${CONTAINER_TAG_YAML_DIR:-$DOCKER_ROOT}
tag_file=$dir/container-tag.yaml
if [[ -f $tag_file ]]; then