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>
This commit is contained in:
Qi Zheng
2019-11-12 07:23:26 +00:00
committed by qzheng527
parent 4d313de742
commit 06124f36f0
21 changed files with 247 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/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