-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (26 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
# __ __
# __ ______ ____ ___ ____ _/ /____ ____ ____/ /
# / / / / __ \/ __ `__ \/ __ `/ __/ _ \/ __ \/ __ /
# / /_/ / /_/ / / / / / / /_/ / /_/ __/ /_/ / /_/ /
# \__, /\____/_/ /_/ /_/\__,_/\__/\___/\____/\__,_/
# /____ matthewdavis.io, holla!
#
include .make/Makefile.inc
NS ?= default
VERSION ?= $(shell git rev-parse HEAD)
APP ?= autobots-rocks-platform-ui
IMAGE ?= registry.gitlab.com/autobots.rocks/$(APP):$(VERSION)
PORT ?= 80
.PHONY: build
all: kubeme build push
deploy: kubeme build push install
build: ; docker build -t $(IMAGE) .
run: ; docker run -p 81:80 $(IMAGE)
push: ; docker push $(IMAGE)
kubeme:
kubectl config use-context md
changelog:
git changelog --all --tag ${VERSION} -p && cp History.md src/assets/
version:
envsubst < src/environments/environment.ts.tmp > src/environments/environment.ts
envsubst < src/environments/environment.prod.ts.tmp > src/environments/environment.prod.ts