Compare commits

...

2 Commits

Author SHA1 Message Date
cc0b2cd584 Code formatter: up the version 2018-12-19 06:41:27 +01:00
3e5427a95b - Support php 7 and 5.6
- Support TypeScript
2018-12-19 06:41:08 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -17,15 +17,15 @@ GIT_TAG = $(shell git describe --tags --exact-match 2>/dev/null)
VERSION := $(or $(GIT_TAG),latest)
all : VERSION := 1.0.2
all : VERSION := 1.0.3
all : build release
.PHONY : all
build :
docker build --build-arg VERSION=$(VERSION) --build-arg COMMIT_SHA=$(COMMIT) -t $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)-php7.2 .
docker build --build-arg VERSION=$(VERSION) --build-arg COMMIT_SHA=$(COMMIT) -t $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)-php7.0 .
docker build --build-arg VERSION=$(VERSION) --build-arg COMMIT_SHA=$(COMMIT) -t $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)-php5.6 .
docker tag $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)-php7.2 $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)
docker tag $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)-php7.0 $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)
release : build
docker push $(DOCKER_REGISTRY)/$(APP_NAME):$(VERSION)

View File

@ -32,7 +32,7 @@ __initVariables() {
CSS_FILES+=("${1}")
fi
;;
*.js|*.jsx)
*.js|*.jsx|*.ts)
__path_exists "${1}"
if [[ $? -ne 0 ]]; then
__err "Specified path does not exist: ${1}"