add ci
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
image = image_name
|
||||
|
||||
all: build
|
||||
|
||||
clean:
|
||||
@docker images -f "dangling=true" -q | docker ps -a -f "ancestor={}" -q | xargs --no-run-if-empty docker rm
|
||||
@docker images -f "dangling=true" -q | xargs --no-run-if-empty docker rmi -f
|
||||
|
||||
@docker ps --filter "ancestor=${image}" --format {{.ID}} | xargs --no-run-if-empty docker stop || true
|
||||
@docker ps -a --filter "ancestor=${image}" --format {{.ID}} | xargs --no-run-if-empty docker rm || true
|
||||
@docker images --filter "reference=${image}" --format {{.ID}} | xargs --no-run-if-empty docker rmi || true
|
||||
|
||||
build:
|
||||
@docker build --tag=${image} --no-cache .
|
||||
|
||||
release: build
|
||||
@docker build --tag=${image}:$(shell cat VERSION) .
|
||||
Reference in New Issue
Block a user