Files
kubelet/Makefile
Dalton Hubble c8969d5242 Remove --build-args since Quay builds don't support
* Quay builds simply build using a Dockerfile and don't
support build-args or Makefile invocation, so arguments
must be set directly in the Dockerfile
* Rather than setting potentially diverging args in the
Makefile vs Dockerfile, use the Dockerfile for now
2020-03-18 20:40:42 -07:00

25 lines
593 B
Makefile

VERSION=$(shell git describe --tags --match=v* --always --abbrev=0 --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 -t $(LOCAL_REPO):$(VERSION) .
buildah tag $(LOCAL_REPO):$(VERSION) $(LOCAL_REPO):latest
.PHONY: push
push:
buildah tag $(LOCAL_REPO):$(VERSION) $(IMAGE_REPO):$(VERSION)
buildah tag $(LOCAL_REPO):$(VERSION) $(IMAGE_REPO):latest
buildah push docker://$(IMAGE_REPO):$(VERSION)
buildah push docker://$(IMAGE_REPO):latest