Migrated to cobra for command handling and viper for config handling
This commit is contained in:
10
Makefile
10
Makefile
@@ -1,5 +1,13 @@
|
||||
VERSION := 1.0.0
|
||||
|
||||
GO := go
|
||||
|
||||
BUILD_FLAGS := -buildmode=pie -trimpath
|
||||
LDFLAGS := -linkmode=external -extldflags="-Wl,-z,relro,-z,now"
|
||||
|
||||
build:
|
||||
@go build -o ./certman .
|
||||
$(GO) build $(BUILD_FLAGS) -ldflags='$(LDFLAGS)' -o ./certman .
|
||||
@cp ./certman ./certman-$(VERSION)-amd64
|
||||
|
||||
stage: build
|
||||
@sudo cp ./certman /srv/vm-passthru/certman
|
||||
|
||||
Reference in New Issue
Block a user