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

Feature/scripts #3

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Feature/scripts #3

wants to merge 8 commits into from

Conversation

jason2506
Copy link
Contributor

No description provided.

@jason2506 jason2506 changed the base branch from master to develop April 29, 2020 01:30
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
Copy link
Contributor

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 的人?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yap,之後看能不能透過 CD 自動升(但要配合一套完整的 git branching 流程

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我的 macbook 原生的 sed -i"" 直接連著會 invalid command code,要改成 sed -i ""

附上版本資訊 /usr/bin/sed BSD May 10, 2005

Screen Shot 2020-04-30 at 09 19 51

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

換成 BSD sed 的寫法了 🙇

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我們以後會有 Linux user 嗎 😈


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
Copy link
Contributor

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 | \
Copy link
Contributor

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 的網址,以後可能會被改掉?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確實有可能以後會改,但目前看來這個網址是滿普遍的用法,等被改掉再換?

@weihanglo weihanglo removed their assignment Oct 7, 2021
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