Files
dockerfiles/python/hooks/post_push
T
Qi Zheng 06124f36f0 Add tag for httpd, mariadb, memcached
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>
2019-11-14 14:34:40 +08:00

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