2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2019 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 echo "---> docker-get-yaml-tag.sh"
12 # Gets the container tag from a yaml file.
17 container_tag_file=container-tag.yaml
19 if [ -f "$container_tag_file" ]
21 image_build_tag=$(yq -r .tag "$container_tag_file")
23 echo "$container_tag_file file not found. Make sure this file exists."
26 echo "---> Tag found: $image_build_tag"
27 # Write DOCKER_IMAGE_TAG information to a file so it can be injected into the
28 # environment for following steps
29 echo "DOCKER_IMAGE_TAG=$image_build_tag" >> "$WORKSPACE/env_docker_inject.txt"