/
publish_repos.sh
38 lines (31 loc) · 1.04 KB
/
publish_repos.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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
aptly repo add stable-repo /vagrant/debs/stable/
aptly repo add testing-repo /vagrant/debs/testing/
aptly repo add rocksoftware22 /vagrant/debs/stable/
if [ ! -d "/vagrant_data/.aptly/public/stable" ]; then
aptly publish repo -distribution="precise" stable-repo stable
if [ $? -ne 0 ]
then
echo "Aptly publish stable-repo failed $?"
else
echo ""
echo ""
echo "Aptly publish successful..."
fi
fi
if [ ! -d "/vagrant_data/.aptly/public/testing" ]; then
aptly publish repo -distribution="precise-testing" testing-repo testing
if [ $? -ne 0 ]
then
echo "Aptly publish failed $?"
else
echo ""
echo ""
echo "Aptly publish successful..."
echo "Go to http://aptly.localhost:8081/ on your local browser packages"
echo "Go to http://aptly.localhost:8080/ on your local browser for Jenkins"
echo "Nginx should be serving up the public directory where your stable and test debs live"
fi
fi
aptly publish update precise-testing testing
aptly publish update precise stable