forked from labring/sealos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
note.sh
29 lines (28 loc) · 1.42 KB
/
note.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Author:louisehong4168
# Blog:https://fenghong.tech
# Time:2020-12-06 11:17:39
# Name:test/note.sh
# Description:This is a production script.
echo "### Usage" >> Note.md
echo "
\`\`\`sh
# 下载并安装sealos, sealos是个golang的二进制工具,直接下载拷贝到bin目录即可, release页面也可下载
$ wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/latest/sealos && \\
chmod +x sealos && mv sealos /usr/bin
\`\`\`
" >> Note.md
echo "### [amd64 下载地址]" >> Note.md
echo "[oss 下载地址](https://${BUCKETNAME:-sealyun}.${OSSENDPOINT:-oss-cn-beijing.aliyuncs.com}/${VERSION}/sealos)" >> Note.md
echo "[latest 版本 oss下载地址](https://${BUCKETNAME:-sealyun}.${OSSENDPOINT:-oss-cn-beijing.aliyuncs.com}/latest/sealos)" >> Note.md
echo "### [arm64 下载地址]" >> Note.md
echo "[oss 下载地址](https://${BUCKETNAME:-sealyun}.${OSSENDPOINT:-oss-cn-beijing.aliyuncs.com}/${VERSION}/sealos-arm64)" >> Note.md
echo "[latest 版本 oss下载地址](https://${BUCKETNAME:-sealyun}.${OSSENDPOINT:-oss-cn-beijing.aliyuncs.com}/latest/sealos-arm64)" >> Note.md
echo "### Docker images" >> Note.md
echo "- \`${DOCKER_REPO:-fanux/sealos}:${VERSION}\`" >> Note.md
echo "- \`${DOCKER_REPO:-fanux/sealos}:latest\`" >> Note.md
echo "
### CHANGELOG
[https://github.com/fanux/sealos/blob/develop/CHANGELOG.md#${VERSION}](https://github.com/fanux/sealos/blob/develop/CHANGELOG.md#${VERSION})
" >> Note.md
cat Note.md