checkout/Makefile

51 lines
940 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)
REGISTRY ?= dr2.rbkmoney.com
2016-10-13 12:14:48 +00:00
# Base image for the service
BASE_IMAGE_NAME := service-fe
BASE_IMAGE_TAG := 2b4570bc1d9631c10aaed2132eb87eb9003f3471
2016-10-13 12:14:48 +00:00
BUILD_IMAGE_TAG := 903ec30497023cef050d8f281ac0bfad668dc5f4
2016-10-13 12:14:48 +00:00
CALL_W_CONTAINER := init check 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 i
2016-10-13 12:14:48 +00:00
check:
npm run check
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