Skip to content

Commit 238de23

Browse files
author
fudongbiao
committed
Merge remote-tracking branch 'origin/master'
2 parents 4622c39 + fa592ae commit 238de23

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
VERSION := $(shell sh -c 'git describe --always --tags')
22
BRANCH := $(shell sh -c 'git rev-parse --abbrev-ref HEAD')
33
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+
410
ifdef GOBIN
511
PATH := $(GOBIN):$(PATH)
612
else
@@ -59,4 +65,11 @@ vet:
5965
fmt:
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

0 commit comments

Comments
 (0)