checkout/Makefile

46 lines
887 B
Makefile
Raw Normal View History

2016-10-13 12:14:48 +00:00
SUBMODULES = build_utils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
UTILS_PATH := build_utils
TEMPLATES_PATH := .
# Name of the service
2016-10-17 17:52:17 +00:00
SERVICE_NAME := payform
2016-10-13 12:14:48 +00:00
# Service image default tag
SERVICE_IMAGE_TAG ?= $(shell git rev-parse HEAD)
# The tag for service image to be pushed with
SERVICE_IMAGE_PUSH_TAG ?= $(SERVICE_IMAGE_TAG)
# Base image for the service
BASE_IMAGE_NAME := service-fe
2017-12-21 11:33:42 +00:00
BASE_IMAGE_TAG := 768cf0f40600e290060502e047dd2e86d4fd6020
2016-10-13 12:14:48 +00:00
2017-05-02 14:04:52 +00:00
BUILD_IMAGE_TAG := 55e987e74e9457191a5b4a7c5dc9e3838ae82d2b
2016-10-13 12:14:48 +00:00
2018-02-28 11:13:53 +00:00
CALL_W_CONTAINER := init test build clean submodules
2016-10-13 12:14:48 +00:00
.PHONY: $(CALL_W_CONTAINER)
all: build
-include $(UTILS_PATH)/make_lib/utils_image.mk
-include $(UTILS_PATH)/make_lib/utils_container.mk
$(SUBTARGETS): %/.git: %
git submodule update --init $<
touch $@
submodules: $(SUBTARGETS)
init:
npm install
2018-02-28 11:13:53 +00:00
test:
npm test
2016-10-13 12:14:48 +00:00
build:
npm run build
clean:
rm -rf dist