-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
38 lines (26 loc) · 866 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
38
.PHONY: \
ci \
lint test build \
docker-dev docker-dev-build docker-dev-push \
docker-prod docker-prod-build docker-prod-push
VERSION ?= 1.0.`date +%Y%m%d`
BASE_COMMIT_ID ?= ""
ci:
docker build --build-arg base_commit_id="origin/master" \
-t harbor.longguikeji.com/ark-releases/arkid-docs:$(VERSION) .
test:
@echo pass
lint:
@echo pass
build: docker-dev-build
docker-dev: docker-dev-build docker-dev-push
docker-dev-build:
docker build -t harbor.longguikeji.com/ark-releases/arkid-docs:$(VERSION) .
docker-dev-push:
docker push harbor.longguikeji.com/ark-releases/arkid-docs:$(VERSION)
docker-prod: docker-prod-build docker-prod-push
docker-prod-build:
docker build -t harbor.longguikeji.com/ark-releases/arkid-docs:$(VERSION) .
docker-prod-push:
docker push harbor.longguikeji.com/ark-releases/arkid-docs:$(VERSION)
include custom.Makefile