Skip to content

Commit

Permalink
optimize rootfs scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevent-fei committed Dec 8, 2022
1 parent c189282 commit 2d33a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
commentbody="${{github.event.comment.body}}"
commentbody=$(echo $commentbody | sed "s/\/imagebuild//g")
sudo git clone https://github.com/sealerio/basefs.git && cd basefs
sudo touch autobuild.log && sudo chmod 666 autobuild.log && sudo bash auto-build.sh --username="${{secrets.REGISTRY_USERNAME}}" --password="${{secrets.REGISTRY_PASSWORD}}" $commentbody > autobuild.log && cat autobuild.log
sudo touch autobuild.log && sudo chmod 666 autobuild.log && sudo bash auto.sh --username="${{secrets.REGISTRY_USERNAME}}" --password="${{secrets.REGISTRY_PASSWORD}}" $commentbody > autobuild.log && cat autobuild.log
echo "::set-output name=info::$(grep 'cri:' autobuild.log))"
- name: Success Commit
Expand Down
2 changes: 1 addition & 1 deletion auto-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ for i in "$@"; do
esac
done

version_compare() { printf '%s\n%s\n' "$2" "$1" | sort -V -C; } ## version_vompare $a $b: a>=b
version_compare() { printf '%s\n%s\n' "$2" "$1" | sort -V -C; } ## version_compare $a $b: a>=b

ARCH=$(case "$(uname -m)" in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo "unsupported architecture" "$(uname -m)" && exit 1 ;; esac)

Expand Down

0 comments on commit 2d33a91

Please sign in to comment.