-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
17 lines (13 loc) · 1002 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PROJECT_NAME = txle
PROJECT_VERSION=9.9.9.9
LATEST_COMMIT_ID=$(shell git rev-parse HEAD)
DOCKER := $(shell which docker)
DOCKER_IMAGE := docker-registry:5000/actiontech/txle/maven:3.6.0
docker_mvn_txle:
$(DOCKER) run -v $(shell pwd)/:/opt/code --rm -w /opt/code $(DOCKER_IMAGE) /bin/bash -c "mvn clean package -DskipTests -gs settings.xml; mvn deploy -DskipTests -Pdev -gs settings.xml"
docker_mvn_txle_release:
$(DOCKER) run -v $(shell pwd)/:/opt/code --rm -w /opt/code $(DOCKER_IMAGE) /bin/bash -c "mvn clean package -DskipTests -gs settings.xml; mvn deploy -DskipTests -Prelease -gs settings-release.xml"
upload_txle:
curl -T $(shell pwd)/target/actiontech-txle-${PROJECT_VERSION}.tar.gz -u admin:ftpadmin ftp://release-ftpd/actiontech-${PROJECT_NAME}/qa/${PROJECT_VERSION}/actiontech-txle-${PROJECT_VERSION}.tar.gz
update_version:
sed -i "s/PROJECT_VERSION=.*/PROJECT_VERSION=${PROJECT_VERSION}/; s/LATEST_COMMIT_ID=.*/LATEST_COMMIT_ID=$(LATEST_COMMIT_ID)/" alpha/alpha-server/txle