ingress-nginx-helm/images/e2e-prow/Makefile
Manuel Alejandro de Brito Fontes 1443ebf5a8
Cleanup of e2e docker images (#4962)
2020-01-25 17:43:21 -03:00

21 lines
513 B
Makefile

TAG ?=v$(shell date +%m%d%Y)-$(shell git rev-parse --short HEAD)
REGISTRY ?= quay.io/kubernetes-ingress-controller
DOCKER ?= docker
IMAGE = $(REGISTRY)/e2e-prow
all: docker-build docker-push
docker-build:
$(DOCKER) buildx build \
--pull \
--load \
--build-arg K8S_RELEASE=v1.17.0 \
--build-arg ETCD_VERSION=v3.3.15 \
--build-arg KIND_VERSION=v0.7.0 \
-t $(IMAGE):$(TAG) .
docker-push:
$(DOCKER) push $(IMAGE):$(TAG)
$(DOCKER) tag $(IMAGE):$(TAG) $(IMAGE):latest
$(DOCKER) push $(IMAGE):latest