You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- .PHONY: prebuild start build
-
- ROOT:=$(shell pwd -P)
- GIT_COMMIT:=$(shell git --work-tree ${ROOT} rev-parse 'HEAD^{commit}')
- _GIT_VERSION:=$(shell git --work-tree ${ROOT} describe --tags --abbrev=14 "${GIT_COMMIT}^{commit}" 2>/dev/null)
- TAG=$(shell echo "${_GIT_VERSION}" | awk -F"-" '{print $$1}')
- RELEASE_VERSION:="$(TAG)-$(GIT_COMMIT)"
-
- prebuild:
- echo "begin download and embed the front-end file..."
- sh fe.sh
- echo "front-end file download and embedding completed."
-
- all: build
-
- build: prebuild
- go build -ldflags "-w -s -X github.com/ccfos/nightingale/v6/pkg/version.Version=$(RELEASE_VERSION)" -o n9e ./cmd/center/main.go
-
- build-alert: prebuild
- go build -ldflags "-w -s -X github.com/ccfos/nightingale/v6/pkg/version.Version=$(RELEASE_VERSION)" -o n9e-alert ./cmd/alert/main.go
-
- build-pushgw: prebuild
- go build -ldflags "-w -s -X github.com/ccfos/nightingale/v6/pkg/version.Version=$(RELEASE_VERSION)" -o n9e-pushgw ./cmd/pushgw/main.go
-
- build-cli: prebuild
- go build -ldflags "-w -s -X github.com/ccfos/nightingale/v6/pkg/version.Version=$(RELEASE_VERSION)" -o n9e-cli ./cmd/cli/main.go
-
- run:
- nohup ./n9e > n9e.log 2>&1 &
-
- run_alert:
- nohup ./n9e-alert > n9e-alert.log 2>&1 &
-
- run_pushgw:
- nohup ./n9e-pushgw > n9e-pushgw.log 2>&1 &
-
- release:
- goreleaser --skip-validate --skip-publish --snapshot
|