Compare commits

..

1 Commits

Author SHA1 Message Date
Dustin 5083b91871 Install mqttdpms
dustin/basementhud/pipeline/head This commit looks good 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-08-02 23:04:22 -05:00
5 changed files with 3 additions and 23 deletions

1
.gitignore vendored
View File

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

View File

@ -1,9 +1,7 @@
SHELL ?= /bin/sh
.PHONY: rootfs
rootfs: \
overlay/usr/local/bin/mqttdpms \
overlay/home/user/.config/mqttdpms/config.toml
rootfs:
$(SHELL) mkrootfs.sh _build/rootfs
.PHONY: initramfs
@ -17,7 +15,3 @@ _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,13 +44,7 @@ pipeline {
projectName: 'mqttdpms/master',
selector: lastSuccessful()
sh 'install aarch64/mqttdpms overlay/usr/local/bin/'
withCredentials([usernamePassword(
usernameVariable: 'MQTTDPMS_USERNAME',
passwordVariable: 'MQTTDPMS_PASSWORD',
credentialsId: 'mqttdpms-basementhud',
)]) {
sh 'make rootfs initramfs'
}
sh 'make rootfs initramfs'
}
}

View File

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

View File

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