File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
VERSION := $(shell sh -c 'git describe --always --tags')
2
2
BRANCH := $(shell sh -c 'git rev-parse --abbrev-ref HEAD')
3
3
COMMIT := $(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
+
4
10
ifdef GOBIN
5
11
PATH := $(GOBIN ) :$(PATH )
6
12
else
59
65
fmt :
60
66
gofmt -s -w .
61
67
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
+
62
75
.PHONY : test-short vet fmt build default
You can’t perform that action at this time.
0 commit comments