fix: Makefile and json log
This commit is contained in:
parent
c5233d578a
commit
98e5f3a536
@ -2,4 +2,4 @@ services:
|
|||||||
- docker
|
- docker
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make docker-build
|
- make container-build
|
||||||
|
12
Makefile
12
Makefile
@ -20,8 +20,18 @@ build:
|
|||||||
go build -ldflags "-X main.version=${VERSION}"
|
go build -ldflags "-X main.version=${VERSION}"
|
||||||
chown -R ${UID}:${GID} *
|
chown -R ${UID}:${GID} *
|
||||||
|
|
||||||
docker-build:
|
container-build:
|
||||||
docker run \
|
docker run \
|
||||||
--volume ${PWD}:/workspace \
|
--volume ${PWD}:/workspace \
|
||||||
volkerraschek/build-image:1.0.0 \
|
volkerraschek/build-image:1.0.0 \
|
||||||
make build UID=${UID} GID=${GID} VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH}
|
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"
|
@ -32,8 +32,8 @@ var rootCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
logfiles := make(map[logger.LogValue][]string)
|
logfiles := make(map[logger.LogValue][]string)
|
||||||
logfiles[logger.LogHumidity] = []string{"/var/log/flucky/humidity.log"}
|
logfiles[logger.LogHumidity] = []string{"/var/log/flucky/humidity.json"}
|
||||||
logfiles[logger.LogTemperature] = []string{"/var/log/flucky/temperature.log"}
|
logfiles[logger.LogTemperature] = []string{"/var/log/flucky/temperature.json"}
|
||||||
|
|
||||||
fc := config.FluckyConfig{
|
fc := config.FluckyConfig{
|
||||||
Device: &types.Device{
|
Device: &types.Device{
|
||||||
|
Loading…
Reference in New Issue
Block a user