-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.bat
39 lines (31 loc) · 839 Bytes
/
make.bat
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
38
39
@echo off
IF /I "%1"=="build-app" GOTO build-app
IF /I "%1"=="build-dev" GOTO build-dev
IF /I "%1"=="deploy-dev" GOTO deploy-dev
IF /I "%1"=="dev-debug" GOTO dev-debug
IF /I "%1"=="dev-reset" GOTO dev-reset
GOTO error
:build-app
@npm run-script build
GOTO :EOF
:build-dev
CALL make.bat build-app
@docker build -t vul-docker-extension:development .
GOTO :EOF
:deploy-dev
CALL make.bat build-dev
@docker extension rm vul-docker-extension:development || true
@docker extension install vul-docker-extension:development
GOTO :EOF
:dev-debug
@docker extension dev debug vul-docker-extension:development
GOTO :EOF
:dev-reset
GOTO :EOF
:error
IF "%1"=="" (
ECHO make: *** No targets specified and no makefile found. Stop.
) ELSE (
ECHO make: *** No rule to make target '%1%'. Stop.
)
GOTO :EOF