Added release on build, fixed subdomains with new toml configs, and added trimmed build target
All checks were successful
Build (artifact) / build (push) Successful in 25s

This commit is contained in:
2026-03-08 22:45:49 +01:00
parent a9c1529f9d
commit 41b3a76c3b
3 changed files with 44 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
VERSION := 1.0.1-beta
VERSION := 1.0.2-beta
BUILD := $(shell git rev-parse --short HEAD)
GO := go
@@ -6,13 +6,17 @@ GO := go
BUILD_FLAGS := -buildmode=pie -trimpath
LDFLAGS := -linkmode=external -extldflags="-Wl,-z,relro,-z,now" -X git.nevets.tech/Keys/CertManager/internal.Version=$(VERSION) -X git.nevets.tech/Keys/CertManager/internal.Build=$(BUILD)
.PHONY: proto build stage
.PHONY: proto build debug stage
proto:
@protoc --go_out=./proto --go-grpc_out=./proto proto/hook.proto
@protoc --go_out=./proto --go-grpc_out=./proto proto/symlink.proto
build: proto
$(GO) build $(BUILD_FLAGS) -ldflags="-s -w $(LDFLAGS)" -o ./certman .
@cp ./certman ./certman-$(VERSION)-amd64
debug: proto
$(GO) build $(BUILD_FLAGS) -ldflags="$(LDFLAGS)" -o ./certman .
@cp ./certman ./certman-$(VERSION)-amd64