Compare commits

..

1 Commits

Author SHA1 Message Date
Dustin 3b4d9c0109 Install mqttdpms
basementhud/pipeline/head This commit looks good Details
fedora-pi-netboot/pipeline/head Build started... Details
dustin/basementhud/pipeline/head There was a failure building this commit Details
The `mqttdpms` tool will allow the screens to be turned off and on using
Home Assistant.  We'll install it into the rootfs image by copying the
artifact from its Jenkins build into the overlay tree before building
the image.
2022-05-22 14:24:16 -05:00
5 changed files with 23 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/_build
overlay/home/user/.config/mqttdpms/config.toml

View File

@ -1,7 +1,9 @@
SHELL ?= /bin/sh
.PHONY: rootfs
rootfs:
rootfs: \
overlay/usr/local/bin/mqttdpms \
overlay/home/user/.config/mqttdpms/config.toml
$(SHELL) mkrootfs.sh _build/rootfs
.PHONY: initramfs
@ -15,3 +17,7 @@ _build/rootfs/boot/initramfs.img: \
.PHONY: publish
publish:
$(SHELL) publish.sh _build/rootfs
overlay/home/user/.config/mqttdpms/config.toml: \
overlay/home/user/.config/mqttdpms/config.toml.in
sed "s:@PASSWORD@:${MQTTDPMS_PASSWORD}:" < $< > $@

8
ci/Jenkinsfile vendored
View File

@ -44,7 +44,13 @@ pipeline {
projectName: 'mqttdpms/master',
selector: lastSuccessful()
sh 'install aarch64/mqttdpms overlay/usr/local/bin/'
sh 'make rootfs initramfs'
withCredentials([usernamePassword(
usernameVariable: 'MQTTDPMS_USERNAME',
passwordVariable: 'MQTTDPMS_PASSWORD',
credentialsId: 'mqttdpms-basementhud',
)]) {
sh 'make rootfs initramfs'
}
}
}

View File

@ -1 +0,0 @@
/run/storage/mqttdpms.toml

View File

@ -0,0 +1,8 @@
name = "Basement HUD"
[mqtt]
host = 'homeassistant.pyrocufflink.blue'
port = 8883
tls = true
username = 'basementhud'
password = "@PASSWORD@"