-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
26 lines (19 loc) · 927 Bytes
/
makefile
File metadata and controls
26 lines (19 loc) · 927 Bytes
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
check:
@output=$$(yarn run --silent prettier --check src 2>&1) || { echo "$$output"; exit 1; }
@output=$$(yarn run --silent eslint src 2>&1) || { echo "$$output"; exit 1; }
@yarn build
fix:
@output=$$(yarn run --silent prettier --write src 2>&1) || { echo "$$output"; exit 1; }
@output=$$(yarn run --silent eslint --fix src 2>&1) || { echo "$$output"; exit 1; }
GIT_VERSION = `git rev-parse --short HEAD`
run:
yarn dev
gen:
yarn run openapi-ts -i http://leda.sao.ru/api/openapi.json -o ./src/clients/backend
yarn run openapi-ts -i http://leda.sao.ru/admin/api/openapi.json -o ./src/clients/admin
image-build:
docker build . -t ghcr.io/hyperleda/hyperleda-webapp:$(GIT_VERSION)
docker tag ghcr.io/hyperleda/hyperleda-webapp:$(GIT_VERSION) ghcr.io/hyperleda/hyperleda-webapp:latest
image-push:
docker push ghcr.io/hyperleda/hyperleda-webapp:$(GIT_VERSION)
docker push ghcr.io/hyperleda/hyperleda-webapp:latest