Make repo url configurable / move to new url for tests

This commit is contained in:
Alexandre Aubin 2017-08-31 16:06:37 +02:00
parent 23d83ac52c
commit 0f74b3de1e
6 changed files with 9 additions and 6 deletions

View file

@ -6,7 +6,7 @@ DEBSIGN_KEYID=59A3E6FF
DEBFULLNAME="YunoHost Contributors"
DEBEMAIL="contrib@yunohost.org"
MAIL="rebuildd@yunohost.org"
REPO_URL="repo.yunohost.org"
REPO_URL="vinaigrette.yunohost.org"
# Codenames, components and architectures

View file

@ -1,7 +1,7 @@
server {
listen 80;
listen [::]:80;
server_name repo.yunohost.org;
server_name __REPO_URL__;
location '/.well-known/acme-challenge' {
default_type "text/plain";

View file

@ -1,2 +1,2 @@
deb-src http://repo.yunohost.org/debian jessie stable testing unstable extra
deb-src http://repo.yunohost.org/debian stretch stable testing unstable extra
deb-src http://__REPO_URL__/debian jessie stable testing unstable extra
deb-src http://__REPO_URL__/debian stretch stable testing unstable extra

View file

@ -35,6 +35,9 @@ cp $VINAIGRETTE_HOME/config/nginx.conf /etc/nginx/sites-enabled/repo.conf
cat $VINAIGRETTE_HOME/config/keys/$DEBSIGN_KEYID.pub | apt-key add
cat $VINAIGRETTE_HOME/config/sources.list > /etc/apt/sources.list.d/vinaigrette.list
sed -i "s/__REPO_URL__/$REPO_URL/g" > /etc/nginx/sites-enabled/repo.conf
sed -i "s/__REPO_URL__/$REPO_URL/g" > /etc/apt/sources.list.d/vinaigrette.list
echo "127.0.0.1 $REPO_URL" >> /etc/hosts
service nginx reload

View file

@ -115,4 +115,4 @@ fi
# exit 1
#fi
echo "Build will start soon. See http://rebuild.yunohost.org"
echo "Build will start soon. See http://$REPO_URL"

View file

@ -92,7 +92,7 @@ fi
export HOME=$HOME_PBUILDER
xmpp_msg="[rebuildd] Completed build of ${package}/${version} in ${COMPONENT} for ${CODENAME}/${arch}. See http://rebuild.yunohost.org/job/${job}"
xmpp_msg="[rebuildd] Completed build of ${package}/${version} in ${COMPONENT} for ${CODENAME}/${arch}. See http://$REPO_URL/job/${job}"
echo -n "$xmpp_msg" \
| sendxmpp -u gitbot -j im.yunohost.org -p "$XMPP_BOT_KEY" \