-
Notifications
You must be signed in to change notification settings - Fork 9
/
.rultor.yml
34 lines (33 loc) · 1.22 KB
/
.rultor.yml
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
27
28
29
30
31
32
33
34
architect:
- yairyabtsev
assets:
private.pgp: yairyabtsev/private#assets/private.pgp
public.pgp: yairyabtsev/private#assets/public.pgp
gitconfig: yairyabtsev/private#assets/.gitconfig
passpharase: yairyabtsev/private#assets/passpharase
config: yairyabtsev/private#assets/config
docker-password: yegor256/polystat-secrets#docker-password
install: |-
sudo apt install md5deep reprepro gcc cmake dpkg wget tar s3cmd libgtest-dev googletest -y
pip3 install git_config pgpy s3cmd
sudo pip3 install cmake
sudo cmake /usr/src/googletest/
sudo make
sudo cp /root/lib/ /usr/local/ -r
release:
script: |-
git checkout ${branch}
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
git clone https://github.com/yairyabtsev/llvm-libs.git
cp -rf llvm-libs/* .
rm -rf llvm-libs
cd llvm-clang/build/
wget 'https://github.com/yairyabtsev/llvm-libs/releases/download/v1.0.0/lib.tar.xz'
tar -xvf lib.tar.xz
cd ../..
echo "release"
python3 project/scripts/update-release.py --version="${tag}"
image=yegor256/c2eo
sudo docker build "$(pwd)" --tag "${image}:${tag}"
cat ../docker-password | sudo docker login --password-stdin --username yegor256
sudo docker push "${image}:${tag}"