Skip to content

Commit

Permalink
chore: add env variables to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
luissimas committed Jun 19, 2024
1 parent bc7f2cd commit acc2c9f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ BINARY_NAME=zettelkasten-exporter

.PHONY: all clean format test build run

all: format vet build
all: format vet test build

clean:
go clean
Expand All @@ -21,4 +21,13 @@ build:
go build -o bin/$(BINARY_NAME) ./cmd/zettelkasten-exporter/main.go

run: build
ZETTELKASTEN_DIRECTORY=./sample ./bin/$(BINARY_NAME)
LOG_LEVEL=INFO \
ZETTELKASTEN_GIT_URL=<GIT_URL> \
ZETTELKASTEN_GIT_BRANCH=master \
ZETTELKASTEN_GIT_TOKEN=<GIT_TOKEN> \
COLLECTION_INTERVAL=10s \
INFLUXDB_TOKEN=<INFLUXDB_TOKEN> \
INFLUXDB_URL=http://localhost:8086 \
INFLUXDB_ORG=default \
INFLUXDB_BUCKET=zettelkasten \
./bin/$(BINARY_NAME)

0 comments on commit acc2c9f

Please sign in to comment.