forked from ContainX/exhibitor-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 1015 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LAST_TAG := $(shell git describe --abbrev=0 --tags)
ZK_VERSION = 3.4.6
EXHIBITOR_VER = 1.5.6
EXECUTABLE := exhibitor-bundle.tgz
all: compile
compile:
docker build -t build -f Dockerfile.build .
docker create --name build-cont build
docker cp build-cont:/src/exhibitor-bundle.tgz ./$(EXECUTABLE)
docker rm -f build-cont
release-docker:
git tag -a $(RELEASE) -m 'release $(RELEASE)'
git push && git push --tags
docker run -it -e GITHUB_TOKEN=$(GITHUB_TOKEN) containx/github-release release -u containx -r exhibitor-bundle -t $(RELEASE) -n $(RELEASE)
docker run -it -e GITHUB_TOKEN=$(GITHUB_TOKEN) -v $(pwd):/data containx/github-release upload -u containx -r exhibitor-bundle -t $(RELEASE) -n $(EXECUTABLE) -f $(EXECUTABLE)
release:
# git tag -a $(RELEASE) -m 'release $(RELEASE)'
# git push && git push --tags
# github-release release -u containx -r exhibitor-bundle -t $(RELEASE) -n $(RELEASE)
github-release upload -u containx -r exhibitor-bundle -t $(RELEASE) -n $(EXECUTABLE) -f $(EXECUTABLE)