You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
406 B
Makefile

default: build
DATE = $(shell date +%F)
SHORT_COMMIT_HASH = $(shell git log -1 --format=%h)
build:
docker build . -t shnee/dind:latest
tag:
docker tag shnee/dind:latest shnee/dind:$(DATE)-$(SHORT_COMMIT_HASH)
clean: rm-unique
-docker rmi shnee/dind:latest
rm-unique:
-docker rmi shnee/dind:$(DATE)-$(SHORT_COMMIT_HASH)
help:
@echo TODO REM do me.
.PHONY: default build tag clean rm-unique help