control-center/Makefile

57 lines
1.2 KiB
Makefile
Raw Normal View History

SUBMODULES = build_utils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
UTILS_PATH := build_utils
TEMPLATES_PATH := .
# Name of the service
SERVICE_NAME := control-center
# 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
# Base image for the service
BASE_IMAGE_NAME := service-fe
BASE_IMAGE_TAG := 647d66a59ba89ea42b326ca5156f5d1e1395febc
2020-07-09 14:22:59 +00:00
BUILD_IMAGE_TAG := b04c5291d101132e53e578d96e1628d2e6dab0c0
GIT_SSH_COMMAND :=
DOCKER_RUN_OPTS = -e GIT_SSH_COMMAND='$(GIT_SSH_COMMAND)' -e NG_CLI_ANALYTICS=ci -e NPM_TOKEN='$(GITHUB_TOKEN)'
2019-12-24 13:54:27 +00:00
2019-01-17 10:12:18 +00:00
CALL_W_CONTAINER := init build clean submodules
.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:
2020-04-06 13:58:30 +00:00
echo -e "//npm.pkg.github.com/:_authToken=$(NPM_TOKEN)" >> .npmrc
npm ci
compile:
npm run compile-thrift
npm run compile-thrift-depricated
2019-03-15 11:11:29 +00:00
build: check lint compile
npm run build
2018-08-21 13:15:51 +00:00
lint:
npm run lint
2019-01-17 10:12:18 +00:00
check:
2020-04-09 09:53:00 +00:00
npm run prettier