ptrc-build: upgrade to 2

and don't publish the password this time
This commit is contained in:
psykose 2022-04-28 00:12:28 +00:00
parent 312094ef12
commit f03de4bfe8
Signed by: psykose
SSH key fingerprint: SHA256:HwlGVJNLZqHoOvMtkshyGaXLkcdbEJahYMlepHFL+Uk
3 changed files with 16 additions and 4 deletions

View file

@ -1,19 +1,22 @@
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=ptrc-build
pkgver=1
pkgver=2
pkgrel=0
pkgdesc="build invoker for ptrcports"
url="https://git.ddd.rip/ptrcnull/ptrcports"
arch="noarch"
license="BSD-2-Clause"
pkggroups="buildozer"
depends="lua-aports mosquitto-clients"
source="build"
source="build ptrc-build.conf"
options="!check" # lol
package() {
install -Dm755 build -t "$pkgdir"/usr/bin
install -Dm640 -g buildozer ptrc-build.conf -t "$pkgdir"/etc
}
sha512sums="
d7fe36a964cd11123117dc6ee1fa1d644ae563de6709d865890893ea15c4a5d51d8bd01c71a051f1759f9396697aa38ad844bfd8e8ca8abd81bec17cd3c4006a build
8e736a1f6665dd993af92c55c55dcf6d90bb3188127238763fa7236e83d4e8e58ee2fcdc9c4f8e4bb7aa3525c52746760cd52608ad94cc2d6c4f5bf6f86359f7 build
4f2108baab8c1882a6d3754bf24dd1e889074d6a5876ebaf43a46ac8cba696c9329579eb3774a15bd73b8eb9870a16b79940b1f4ff281eb257376ef0bf044d70 ptrc-build.conf
"

View file

@ -4,10 +4,18 @@
# to fail silently since apk is not in path
export PATH="/usr/bin:/usr/sbin:/bin:/sbin"
. /etc/ptrc-build.conf
arch=$(apk --print-arch)
pub() {
mosquitto_pub -L mqtts://build:build@mqtt.torastian.com/build/$arch -m "$1"
mosquitto_pub -h mqtt.torastian.com \
-u build \
-p 8883 \
-P "$MQTT_BUILD_PASSWORD" \
-t build/$arch \
--tls-version tlsv1.3 \
-m "$1"
}
echo "pulling git"

View file

@ -0,0 +1 @@
MQTT_BUILD_PASSWORD=""