Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update docker scripts
[releng/global-jjb.git]
/
shell
/
docker-get-yaml-tag.sh
diff --git
a/shell/docker-get-yaml-tag.sh
b/shell/docker-get-yaml-tag.sh
index
2a1bbdc
..
8b0e16e
100644
(file)
--- a/
shell/docker-get-yaml-tag.sh
+++ b/
shell/docker-get-yaml-tag.sh
@@
-18,12
+18,12
@@
container_tag_file=container-tag.yaml
if [ -f "$container_tag_file" ]
then
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
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
# 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"