-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
26 lines (24 loc) · 1.05 KB
/
build.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
github_version=$(cat github_version.txt)
ftp_version=$(cat ftp_version.txt)
del_version=$(cat delete_version.txt)
if [ $github_version != $ftp_version ]
then
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
wget https://github.com/kubernetes/kubernetes/archive/v$github_version.zip
unzip v$github_version.zip
mv kubernetes-$github_version/ kubernetes
cd kubernetes
make kubelet
cd _output/local/bin/linux/ppc64le/
ls
mv kubelet kubelet-$github_version
./kubelet-$github_version --version
if [[ $github_version != $ftp_version ]]
then
lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; put -O /ppc64el/kubelet/latest kubelet-$github_version"
lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; rm /ppc64el/kubelet/latest/kubelet-$ftp_version"
lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; put -O /ppc64el/kubelet kubelet-$github_version"
#lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; rm /ppc64el/kubelet/kubelet-$del_version"
fi
fi