Skip to content

Commit 4fd0939

Browse files
make: add docker_rpm
1 parent e198dca commit 4fd0939

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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
46
ifdef GOBIN
57
PATH := $(GOBIN):$(PATH)
68
else
@@ -59,4 +61,8 @@ vet:
5961
fmt:
6062
gofmt -s -w .
6163

64+
65+
docker_rpm:
66+
$(DOCKER) run -v $(shell pwd)/:/universe/src/udup --rm $(DOCKER_IMAGE) -c "cd /universe/src/udup; GOPATH=/universe make prepare package"
67+
6268
.PHONY: test-short vet fmt build default

0 commit comments

Comments
 (0)