File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 11VERSION := $(shell sh -c 'git describe --always --tags')
22BRANCH := $(shell sh -c 'git rev-parse --abbrev-ref HEAD')
33COMMIT := $(shell sh -c 'git rev-parse --short HEAD')
4+ DOCKER := $(shell which docker)
5+ DOCKER_IMAGE := docker-registry:5000/actiontech/universe-compiler
6+
7+ PROJECT_NAME = udup
8+ VERSION = 9.9.9.9
9+
410ifdef GOBIN
511PATH := $(GOBIN ) :$(PATH )
612else
5965fmt :
6066 gofmt -s -w .
6167
68+
69+ docker_rpm :
70+ $(DOCKER ) run -v $(shell pwd) /:/universe/src/udup --rm $(DOCKER_IMAGE ) -c " cd /universe/src/udup; GOPATH=/universe make prepare package"
71+
72+ upload :
73+ curl -T $(shell pwd) /dist/* .rpm -u admin:ftpadmin ftp://release-ftpd/actiontech-${PROJECT_NAME} /qa/${VERSION} /${PROJECT_NAME} -${VERSION} -qa.x86_64.rpm
74+
6275.PHONY : test-short vet fmt build default
You can’t perform that action at this time.
0 commit comments