mirror of
https://github.com/outbackdingo/kubelet.git
synced 2026-01-27 18:19:26 +00:00
23 lines
499 B
Makefile
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)
|
|
|