Strider-CD / strider-docker-build

Build (and push) Docker images in Strider
16 stars 7 forks source link

auto add tag:version (version+1) #23

Open caizx666 opened 3 years ago

caizx666 commented 3 years ago

增加了给tag自动累加版本号功能,以便在部署时可以更新这个新版本的镜像

累加规则: 1、获取当前已有的tags, 2、排除latest版本,找到最大的tag末位自动加一,例如:2.0 => 2.1

knownasilya commented 3 years ago

translation:

Added the function of automatically accumulating the version number to the tag so that the new version of the image can be updated during deployment

Accumulation rules:

  1. Get the currently existing tags,
  2. Exclude the latest version, and automatically add one to the end of the largest tag, for example: 2.0 => 2.1