1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00
mdlayher-homelab/gokrazy/Makefile
Matt Layher 095fd58f38
gokrazy: support multiple devices
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-02 16:44:00 -04:00

20 lines
545 B
Makefile

.PHONY: all _update monitnerr-1 monitnerr-2
all:
tar cf breakglass.tar --dereference sh \
&& breakglass -debug_tarball_pattern breakglass.tar monitnerr-1
monitnerr-1: DEVICE := monitnerr-1
monitnerr-1: _update
monitnerr-2: DEVICE := monitnerr-2
monitnerr-2: _update
_update:
gokr-packer \
-update=http://gokrazy:$(shell cat ~/.config/gokrazy/$(DEVICE).txt)@$(DEVICE)/ \
-hostname=$(DEVICE) \
github.com/gokrazy/breakglass \
github.com/gokrazy/stat/cmd/gokr-webstat \
github.com/mdlayher/consrv \
github.com/prometheus/node_exporter