15 lines
360 B
Makefile
15 lines
360 B
Makefile
NAME := dnsdist-docker
|
|
|
|
.PHONY: image push_binted
|
|
|
|
image:
|
|
@podman build -t "$(NAME)" -f - < Dockerfile
|
|
|
|
push_binted: image
|
|
@TAG="$(TAG)"; \
|
|
repository="cr.binted.boats/binted"; \
|
|
name="$(NAME)"; \
|
|
tag="$${TAG:-$$(date +"%Y%m%d%H%M%S")}"; \
|
|
full_name="$$repository/$$name:$$tag"; \
|
|
podman tag "$(NAME):latest" "$$full_name"; \
|
|
podman push "$$full_name"
|