mirror of
https://github.com/valitydev/koffing.git
synced 2024-11-06 01:05:19 +00:00
40 lines
841 B
Makefile
40 lines
841 B
Makefile
SUBMODULES = build_utils
|
|
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
|
|
|
|
UTILS_PATH := build_utils
|
|
TEMPLATES_PATH := .
|
|
|
|
# Name of the service
|
|
SERVICE_NAME := koffing
|
|
# 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
|
|
BASE_IMAGE_TAG := a58a828755e9d342ecbd7071e7dc224ffe546378
|
|
|
|
BUILD_IMAGE_TAG := 6fb209e428feaa0ef6cec07d3909d8a3c4013537
|
|
|
|
CALL_W_CONTAINER := 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)
|
|
|
|
build:
|
|
npm run build
|
|
|
|
clean:
|
|
rm -rf dist
|