mirror of
https://github.com/outbackdingo/kubelet.git
synced 2026-01-28 10:19:28 +00:00
* 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
25 lines
593 B
Makefile
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
|
|
|