mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Scripts cleanup
This commit is contained in:
parent
1502ad2530
commit
8cd38003c2
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} .
|
||||
|
Loading…
Reference in New Issue
Block a user