Skip to content

Commit fa592ae

Browse files
make: add upload
1 parent 4fd0939 commit fa592ae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ BRANCH := $(shell sh -c 'git rev-parse --abbrev-ref HEAD')
33
COMMIT := $(shell sh -c 'git rev-parse --short HEAD')
44
DOCKER := $(shell which docker)
55
DOCKER_IMAGE := docker-registry:5000/actiontech/universe-compiler
6+
7+
PROJECT_NAME = udup
8+
VERSION = 9.9.9.9
9+
610
ifdef GOBIN
711
PATH := $(GOBIN):$(PATH)
812
else
@@ -65,4 +69,7 @@ fmt:
6569
docker_rpm:
6670
$(DOCKER) run -v $(shell pwd)/:/universe/src/udup --rm $(DOCKER_IMAGE) -c "cd /universe/src/udup; GOPATH=/universe make prepare package"
6771

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+
6875
.PHONY: test-short vet fmt build default

0 commit comments

Comments
 (0)