-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(main): support arm64 release docs (#2510)
* docs(main): support arm64 release docs Signed-off-by: cuisongliu <[email protected]> * docs(main): support arm64 release docs Signed-off-by: cuisongliu <[email protected]> * docs(main): support arm64 release docs Signed-off-by: cuisongliu <[email protected]> --------- Signed-off-by: cuisongliu <[email protected]>
- Loading branch information
1 parent
5b69663
commit ac20fc3
Showing
7 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ tags.temp | |
/test.log | ||
|
||
/tests/k8s/_out/ | ||
replace_content.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
TAG=${1} | ||
|
||
if [ -z "$TAG" ]; then | ||
echo "Error: No version number provided." | ||
exit 1 | ||
fi | ||
VERSION=${TAG##*v} | ||
MAJOR=${VERSION%%.*} | ||
MINOR=${VERSION%.*} | ||
MINOR=${MINOR#*.} | ||
PATCH=${VERSION##*.} | ||
|
||
START_MARKER="<!--youki release begin-->" | ||
END_MARKER="<!--youki release end-->" | ||
|
||
|
||
echo "\`\`\`console | ||
\$ wget -qO youki_${VERSION}_linux.tar.gz https://github.com/containers/youki/releases/download/v${VERSION}/youki_${MAJOR}_${MINOR}_${PATCH}_linux-\$(uname -m).tar.gz | ||
\$ tar -zxvf youki_${VERSION}_linux.tar.gz --strip-components=1 | ||
# Maybe you need root privileges. | ||
\$ mv youki-${VERSION}/youki /usr/local/bin/youki | ||
\$ rm -rf youki_${VERSION}_linux.tar.gz youki-${VERSION} | ||
\`\`\`" > replace_content.txt | ||
|
||
awk -v start="$START_MARKER" -v end="$END_MARKER" -v newfile="replace_content.txt" ' | ||
BEGIN {printing=1} | ||
$0 ~ start {print;system("cat " newfile);printing=0} | ||
$0 ~ end {printing=1} | ||
printing' docs/src/user/basic_setup.md > temp.txt && mv temp.txt docs/src/user/basic_setup.md |