Skip to content
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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

caizx666
Copy link
Contributor

@caizx666 caizx666 commented Jan 7, 2021

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

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

@knownasilya
Copy link
Member

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

@@ -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"
Copy link
Member

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
);
});
});
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants