forked from leeif/pluto-admin
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 877 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 877 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
docker-build:
docker build -t mushare/pluto-admin:$(VERSION) .
docker-stg-build:
docker build -t mushare/pluto-admin:staging .
docker-push:
docker push mushare/pluto-admin:$(VERSION)
docker-stg-push:
docker push mushare/pluto-admin:staging
docker-clean:
docker rmi mushare/pluto-admin:$(VERSION) || true
docker rm -v $(shell docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null || true
docker rmi $(shell docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null || true
docker-stg-clean:
docker rmi mushare/pluto-admin:staging || true
docker rm -v $(shell docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null || true
docker rmi $(shell docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null || true
ci-build-production: docker-build docker-push docker-clean
ci-build-staging: docker-stg-build docker-stg-push docker-stg-clean