mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 23:59:26 +00:00
Scripts cleanup
This commit is contained in:
5
scripts/clean
Executable file
5
scripts/clean
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
rm -rf dist bin build k3s hyperkube kubectl
|
||||
@@ -3,7 +3,7 @@ set -e
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
if [ ! -e ../bin/k3s-server ]; then
|
||||
if [ ! -e ../bin/containerd ]; then
|
||||
./build
|
||||
fi
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ done
|
||||
|
||||
rm -rf build/data
|
||||
mkdir -p build/data
|
||||
mkdir -p dist
|
||||
|
||||
tar cvzf ./build/data.tar.gz --exclude ./bin/hyperkube ./bin
|
||||
HASH=$(sha256sum ./build/data.tar.gz | awk '{print $1}')
|
||||
|
||||
@@ -13,4 +13,4 @@ done
|
||||
rm -rf kubernetes
|
||||
mkdir -p kubernetes
|
||||
cd kubernetes
|
||||
ln -s $1/{cmd,pkg,plugin,third_party} .
|
||||
ln -s $1/{cmd,pkg,plugin,third_party,openapi.json,openapi.pb} .
|
||||
|
||||
Reference in New Issue
Block a user