diff --git a/.travis.yml b/.travis.yml index 021711c..6836554 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ services: - docker script: - - make docker-build + - make container-build diff --git a/Makefile b/Makefile index 1ff5ebc..75aa14c 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,18 @@ build: go build -ldflags "-X main.version=${VERSION}" chown -R ${UID}:${GID} * -docker-build: +container-build: docker run \ --volume ${PWD}:/workspace \ volkerraschek/build-image:1.0.0 \ make build UID=${UID} GID=${GID} VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH} + +hades: + $(MAKE) build GOARCH=arm + scp flucky hades.hellenthal.cryptic.systems:/usr/local/bin + ssh hades.hellenthal.cryptic.systems "chmod +x /usr/local/bin/flucky" + +poseidon: + $(MAKE) build GOARCH=arm + scp flucky poseidon.trier.cryptic.systems:/usr/local/bin + ssh poseidon.trier.cryptic.systems "chmod +x /usr/local/bin/flucky" \ No newline at end of file diff --git a/cmd/cmd.go b/cmd/cmd.go index d8c4ab2..2cbd099 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -32,8 +32,8 @@ var rootCmd = &cobra.Command{ } logfiles := make(map[logger.LogValue][]string) - logfiles[logger.LogHumidity] = []string{"/var/log/flucky/humidity.log"} - logfiles[logger.LogTemperature] = []string{"/var/log/flucky/temperature.log"} + logfiles[logger.LogHumidity] = []string{"/var/log/flucky/humidity.json"} + logfiles[logger.LogTemperature] = []string{"/var/log/flucky/temperature.json"} fc := config.FluckyConfig{ Device: &types.Device{