-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
20 lines (18 loc) · 1.03 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
github_version=$(cat github_version.txt)
ftp_version=$(cat ftp_version.txt)
LOCALPATH=$GOPATH/src/github.com/containerd/containerd/releases
if [ $github_version != $ftp_version ]
then
git clone https://$USERNAME:[email protected]/Unicamp-OpenPower/repository-scrips.git
cd repository-scrips/
chmod +x empacotar-containerd-deb.sh
chmod +x empacotar-containerd-rpm.sh
sudo mv empacotar-containerd-deb.sh $LOCALPATH
sudo mv empacotar-containerd-rpm.sh $LOCALPATH
cd $LOCALPATH
sudo ./empacotar-containerd-deb.sh containerd-$github_version-linux-ppc64le.tar.gz $github_version
sudo ./empacotar-containerd-rpm.sh containerd-$github_version-linux-ppc64le.tar.gz $github_version
lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; put -O /repository/debian/ppc64el/containerd/ $LOCALPATH/containerd-$github_version-ppc64le.deb"
sudo lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; put -O /repository/rpm/ppc64le/containerd/ ~/rpmbuild/RPMS/ppc64le/containerd-$github_version-1.ppc64le.rpm"
fi