-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto add tag:version (version+1) #23
base: master
Are you sure you want to change the base?
Conversation
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:
|
@@ -5,7 +5,7 @@ | |||
"main": "worker.js", | |||
"scripts": { | |||
"lint": "eslint *.js lib", | |||
"test": "npm run lint" | |||
"test": "cross-env DEBUG=strider-docker-build:*,-not_this mocha" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can ,-not_this
be removed?
done | ||
); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the addition of this test.
增加了给tag自动累加版本号功能,以便在部署时可以更新这个新版本的镜像
累加规则:
1、获取当前已有的tags,
2、排除latest版本,找到最大的tag末位自动加一,例如:2.0 => 2.1