Files
kubelet/Makefile
Dalton Hubble 23228e60e7 Remove --abbrev=0 from Makefile VERSION
* Use version that shows the most recent release, a patch
count, and the git sha
2020-05-28 23:39:07 -07:00

23 lines
499 B
Makefile

VERSION=$(shell git describe --tags --match=v* --always --dirty)
LOCAL_REPO?=dghubble/kubelet
IMAGE_REPO?=quay.io/dghubble/kubelet
all: image
.PHONY: run
run:
podman run -it \
--entrypoint /bin/sh \
dghubble/kubelet
.PHONY: image
image:
buildah bud -f Dockerfile.amd64 -t $(LOCAL_REPO):$(VERSION) .
buildah tag $(LOCAL_REPO):$(VERSION) $(LOCAL_REPO):latest
.PHONY: push
push:
buildah tag $(LOCAL_REPO):$(VERSION) $(IMAGE_REPO):$(VERSION)
buildah push docker://$(IMAGE_REPO):$(VERSION)