diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-12-05 13:23:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-12-05 13:24:05 +0000 |
commit | 0ec26b42d4956432b88cdeaa9ae1e2136f319839 (patch) | |
tree | ec0592f98b12d158874792819f2581c6b54454cc /main/aports-build | |
parent | 535ee5001ac32b5c4e401972d1b4ee970da794b5 (diff) | |
download | aports-0ec26b42d4956432b88cdeaa9ae1e2136f319839.tar.bz2 aports-0ec26b42d4956432b88cdeaa9ae1e2136f319839.tar.xz |
main/aports-build: push mqtt notifications for rsync
and we use rsync.alpinelinux.org as upload host
Diffstat (limited to 'main/aports-build')
-rw-r--r-- | main/aports-build/APKBUILD | 10 | ||||
-rw-r--r-- | main/aports-build/aports-build | 7 |
2 files changed, 11 insertions, 6 deletions
diff --git a/main/aports-build/APKBUILD b/main/aports-build/APKBUILD index 17a0e78ed..db1ca0523 100644 --- a/main/aports-build/APKBUILD +++ b/main/aports-build/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=aports-build -pkgver=0.1 -pkgrel=2 +pkgver=0.2 +pkgrel=0 pkgdesc="MQTT based build-on-git-push scripts for Alpine Linux" url="http://alpinelinux.org" arch="noarch" @@ -39,12 +39,12 @@ package() { "$pkgdir"/etc/conf.d/aports-build || return 1 } -md5sums="bfc281f6af37994137b753eb3406b543 aports-build +md5sums="898ed6440f9b212b777559bd8774bb72 aports-build 40ff7be2ad647d22c4c8ebfe1fec8b1b aports-build.initd cdc49e0ef145de72131972a575f20e7b aports-build.confd" -sha256sums="588dfd07c44c0cd2eef8a47a4b29d370bce6232de7930834a71420cf34f406bb aports-build +sha256sums="170a71a1488230c5ba280e63586697d16f9de0493e4fa438b51d734b8ced5d7d aports-build e6b228ccc0dcdf7f172ebd3777c5791b96f86a8c96a4df95df2dd3c9051b91fe aports-build.initd 519744cdb4be83e5da1c22d4aa93c7ef97d66e03565e84b710bc21c94b82047e aports-build.confd" -sha512sums="1a632c2c98cedcde47810d743925b99540230ff136d982753818befeddb8260117df2bcfc47fcc34cafa050122cd638c1820e32fa32f9c93871e40dd05a198e3 aports-build +sha512sums="06de904b03f7dcce9fe854b63a91cb7b1cccffc87752b592eaa80d44fe6ec8df8b5c1171242e3fdd8adbcef89305b27d1a84b0b530512ec709ed831be1a129e9 aports-build af5cd8e2647f3b9aa03020d5cea996a750b48b2b3a4d208f5ef683538aba3ecada677b9a0071385c85ec66803b8ed055b1d58853ccfe198c1c5beaad99d97d86 aports-build.initd fbe8ed4b1fbfc979de62302873e99c67bab751a7fcd921c3b23815f535cedb34c717e82b3c223f88e06498a573cbd147a73db7bf5adbb5e1947ac75fcb8edcb4 aports-build.confd" diff --git a/main/aports-build/aports-build b/main/aports-build/aports-build index 187a9a1a3..54f0f28af 100644 --- a/main/aports-build/aports-build +++ b/main/aports-build/aports-build @@ -39,7 +39,8 @@ isodir=$HOME/alpine-iso packages=${REPOSDIR:-$HOME/packages} repos=${REPOS:-"main testing"} -: ${upload_prefix:="nl.alpinelinux.org:alpine"} +: ${upload_host:="rsync.alpinelinux.org"} +: ${upload_prefix:="$upload_host:alpine"} upload_pkg="$upload_prefix/$rel/" upload_iso="$upload_prefix/$rel/releases/$arch/" @@ -47,6 +48,7 @@ upload_iso="$upload_prefix/$rel/releases/$arch/" : ${hostname:=$(hostname)} : ${mqtt_broker:="msg.alpinelinux.org"} : ${status_msg:="mosquitto_pub -h $mqtt_broker -t build/$hostname -r -m"} +: ${upload_msg:="mosquitto_pub -h $mqtt_broker -t rsync/$upload_host/$rel -m"} : ${irc_msg:="mosquitto_pub -h $mqtt_broker -t irc/${ircchannel//#/%} -m"} : ${logdir:="/var/cache/distfiles/buildlogs"} : ${logurlprefix:="http://bld1.alpinelinux.org/buildlogs"} @@ -174,6 +176,9 @@ while true; do send_irc "release $_current_tag uploaded" fi fi + + # notify mirrors that they can upload now if they want + $upload_msg "$_current" done # cleanup |