-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (32 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
BUILD_TAG ?= latest
build:
docker build \
-t impresso/impresso-frontend:${BUILD_TAG} \
--build-arg GIT_TAG=${BUILD_TAG} \
--build-arg GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
--build-arg GIT_REVISION=$(shell git rev-parse --short HEAD) .
build-netlify:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_PATH=/ \
npm run build && \
netlify deploy --prod --dir=dist
run-dev:
VITE_GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
VITE_GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
VITE_GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_PATH=/app/ \
npm run dev
run-docker-dev:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_PATH=/app/ \
docker-compose -f docker-compose-dev.yml up
run-docker-dev-build:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_PATH=/app/ \
docker-compose -f docker-compose-dev.yml up --build