mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-11-27 08:14:44 +00:00
and nginx, postgres, ... Two tags are to be added for each containers. 1. exact app version tag, usually format as x.y.z. For example, 5.0.6 for redis. 2. major app version tag, usually format as x. For example, 5 for redis. For some special cases, the major format as x.y. For example, 1.17 for nginx, 3.7 for python. Signed-off-by: Qi Zheng <qi.zheng@intel.com>
14 lines
258 B
Bash
Executable File
14 lines
258 B
Bash
Executable File
#!/bin/bash
|
|
echo "=> Tagging the image"
|
|
|
|
. ../docker-hooks.sh
|
|
|
|
image="clearlinux/python"
|
|
tag=$(get_tag python3)
|
|
|
|
if [ $? -eq 0 ] && [ -n "$tag" ]; then
|
|
# major tag format x.y, such as 3.6 , 3.7
|
|
major_tag=${tag%.*}
|
|
tag_and_push $tag $major_tag
|
|
fi
|