-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
37 lines (29 loc) · 1018 Bytes
/
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
VERSION?=local
.PHONY: build
build:
@dotnet build
.PHONY: test
test: build
dotnet test --no-build
.PHONY: docker-build
docker-build:
docker build -t mustakimali/justaml:$(VERSION) -f Dockerfile .
.PHONY: docker-run
docker-run:
docker run -it -p 5050:80 mustakimali/justaml:$(VERSION)
.PHONY: docker-push
docker-push:
./Dockerpush.sh
.PHONY: docker-log
docker-log: SHELL:=/bin/bash
docker-log:
kubectl get po | grep justaml | head -1 | awk '{print $$1}' | xargs -I{} kubectl logs --tail=10 -f {}
.PHONY: combine-all-scripts
combine-all-scripts: SHELL:=/bin/bash
combine-all-scripts:
./scripts/combine-scripts.sh src/JustSending/Views/Shared/_Layout.cshtml src/JustSending/wwwroot/js combined-main
./scripts/combine-scripts.sh src/JustSending/Views/App/Session.cshtml src/JustSending/wwwroot/js combined-session
.PHONY: combine-all-css
combine-all-css: SHELL:=/bin/bash
combine-all-css:
./scripts/combine-css.sh src/JustSending/Views/Shared/_CommonHead.cshtml src/JustSending/wwwroot/css combined-main