mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-19 12:16:37 +00:00
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:
Executable
+13
@@ -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
|
||||
Reference in New Issue
Block a user