-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 809 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 809 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
.PHONY: all release clean build
ORG=goodeggs
PROJECT=ci-runner
all: build
release: build
@sleep 1 # Need a bit of sleep so docker has a moment to complete
docker push $(ORG)/$(PROJECT)
clean:
@docker rmi -f $(ORG)/$(PROJECT) . >/dev/null 2>&1 || true
build: clean
@echo 'Starting build....'
@docker build --squash -f dist/Dockerfile -t $(ORG)/$(PROJECT) . | sed 's/^/[docker build] /'
@echo ''
@echo '****************************************** Layer Info ***************************************'
@docker history $(ORG)/$(PROJECT)
@echo ''
@echo '****************************************** Image Size ***************************************'
@docker images $(ORG)/$(PROJECT)
@echo ''
@echo '***********************************************************************************************'