-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/scripts #3
base: develop
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,42 @@ | |||
#!/usr/bin/env bash |
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.
想問 scripts/bump-version.sh
會是誰在用?更改 chart 的人?
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.
yap,之後看能不能透過 CD 自動升(但要配合一套完整的 git branching 流程
scripts/bump-version.sh
Outdated
sed -i"" "s/^ version: \"$CURRENT_VERSION\"$/ version: \"$NEW_VERSION\"/" $ROOT_PATH/starter/Chart.yaml | ||
|
||
echo "Updating README.md..." | ||
sed -i"" "/^### Adding Dependency$/,/^### Using Starter$/s;version: $CURRENT_VERSION;version: $NEW_VERSION;" $ROOT_PATH/README.md |
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.
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.
換成 BSD sed 的寫法了 🙇
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.
我們以後會有 Linux user 嗎 😈
scripts/bump-version.sh
Outdated
|
||
UPDATED_PART_VAR=$(echo $UPDATED_PART | tr '[:lower:]' '[:upper:]')_VERSION | ||
eval $UPDATED_PART_VAR'=$(($'$UPDATED_PART_VAR' + 1))' | ||
NEW_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION |
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.
這邊不太合理?bump 大阪好時小版號應該要歸零吧?
|
||
echo "Creating chart..." | ||
mkdir "$CHART_NAME" | ||
curl --proto '=https' --tlsv1.2 -sSf https://codeload.github.com/hahow/common-chart/tar.gz/master | \ |
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.
codeload.github.com 是最後 redirect 到的網址沒錯吧?我不確定他不是不是 public facing 的網址,以後可能會被改掉?
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.
確實有可能以後會改,但目前看來這個網址是滿普遍的用法,等被改掉再換?
No description provided.