docker-compose 模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
301 B

#!/bin/bash
if [ -z ${IMAGE_VERSION+x} ];then
IMAGE_VERSION=latest
fi
image_name="homeland/homeland"
version=$(date "+%Y%m%d%H%M%S")
current_version=$IMAGE_VERSION
echo "Tag: $current_version -> $version"
docker tag $image_name:$current_version $image_name:$version
echo $version > .previous-version