-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (18 loc) · 738 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BUILD_TAG ?= latest
PUBLIC_URL ?=/editor
run-dev:
PUBLIC_URL=${PUBLIC_URL} \
REACT_APP_EDITOR_BASENAME=${PUBLIC_URL} \
REACT_APP_VISUAL_EDITOR_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
REACT_APP_VISUAL_EDITOR_GIT_REVISION=$(shell git rev-parse --short HEAD) \
yarn start
run-build:
REACT_APP_VISUAL_EDITOR_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
REACT_APP_VISUAL_EDITOR_GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_URL=/editor yarn build
build-docker-image:
docker build \
-t c2dhunilu/visual-editor:${BUILD_TAG} \
--build-arg PUBLIC_URL=${PUBLIC_URL} \
--build-arg GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
--build-arg GIT_REVISION=$(shell git rev-parse --short HEAD) .