-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
14 lines (13 loc) · 701 Bytes
/
Makefile
File metadata and controls
14 lines (13 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SERVER_VERSION ?= dev
RECOMMENDED_RUNNER_VERSION ?= latest
RECOMMENDED_CLI_VERSION ?= latest
ANALYTICS_ENDPOINT ?=
ANALYTICS_API_KEY ?=
LDFLAGS = -X gitlab.com/codebox4073715/codebox/config.ServerVersion=$(SERVER_VERSION) \
-X gitlab.com/codebox4073715/codebox/config.RecommendedRunnerVersion=$(RECOMMENDED_RUNNER_VERSION) \
-X gitlab.com/codebox4073715/codebox/config.RecommendedCLIVersion=$(RECOMMENDED_CLI_VERSION) \
-X gitlab.com/codebox4073715/codebox/config.AnalyticsEndpoint=$(ANALYTICS_ENDPOINT) \
-X gitlab.com/codebox4073715/codebox/config.AnalyticsApiKey=$(ANALYTICS_API_KEY)
.ONESHELL:
build:
go build -o bin/codebox -ldflags "$(LDFLAGS)" main.go