Refactored config system again
All checks were successful
Build (artifact) / build (push) Successful in 27s
All checks were successful
Build (artifact) / build (push) Successful in 27s
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,12 +1,13 @@
|
||||
VERSION := 1.1.6-beta
|
||||
VERSION := 1.1.7-beta
|
||||
BUILD := $(shell git rev-parse --short HEAD)
|
||||
UPDATE_SRC := "https://git.nevets.tech/api/v1/repos/Steven/certman/releases"
|
||||
|
||||
GO := go
|
||||
|
||||
BUILD_FLAGS := -buildmode=pie -trimpath
|
||||
LDFLAGS := -linkmode=external -extldflags="-Wl,-z,relro,-z,now" -X git.nevets.tech/Keys/certman/common.Version=$(VERSION) -X git.nevets.tech/Keys/certman/common.Build=$(BUILD)
|
||||
LDFLAGS := -linkmode=external -extldflags="-Wl,-z,relro,-z,now" -X git.nevets.tech/Steven/certman/common.Version=$(VERSION) -X git.nevets.tech/Steven/certman/common.Build=$(BUILD) -X git.nevets.tech/Steven/certman/app.SourceCertmanRepo=$(UPDATE_SRC)
|
||||
|
||||
.PHONY: proto bundle client server executor build debug stage help
|
||||
.PHONY: proto bundle client server executor cryptr build debug stage help
|
||||
|
||||
proto:
|
||||
@protoc --go_out=./proto --go-grpc_out=./proto proto/hook.proto
|
||||
@@ -28,7 +29,11 @@ executor: proto
|
||||
@echo "Building Certman Executor"
|
||||
$(GO) build $(BUILD_FLAGS) -ldflags="-s -w $(LDFLAGS)" -o ./bin/certman-executor-$(VERSION)-amd64 ./app/executor
|
||||
|
||||
build: proto bundle client server executor
|
||||
cryptr:
|
||||
@echo "Building Cryptr"
|
||||
$(GO) build $(BUILD_FLAGS) -ldflags="-s -w -linkmode=external -extldflags="-Wl,-z,relro,-z,now"" -o ./bin/cryptr ./app/cryptr
|
||||
|
||||
build: proto bundle client server cryptr
|
||||
@echo "All binaries successfully built"
|
||||
|
||||
debug: proto
|
||||
|
||||
Reference in New Issue
Block a user