2018-07-28 14:52:46 -04:00
|
|
|
# Copyright 2018 The Kubernetes Authors. All rights reserved.
|
|
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
|
|
TAG ?=v$(shell date +%m%d%Y)-$(shell git rev-parse --short HEAD)
|
|
|
|
|
REGISTRY ?= quay.io/kubernetes-ingress-controller
|
|
|
|
|
|
|
|
|
|
IMAGE = $(REGISTRY)/e2e
|
|
|
|
|
|
|
|
|
|
all: docker-build docker-push
|
|
|
|
|
|
|
|
|
|
docker-build:
|
2020-01-25 17:43:21 -03:00
|
|
|
docker buildx build \
|
2019-05-24 02:47:14 +02:00
|
|
|
--pull \
|
2020-01-14 20:52:57 -03:00
|
|
|
--load \
|
2020-01-26 21:48:35 -03:00
|
|
|
--progress plain \
|
2020-01-04 20:29:49 -03:00
|
|
|
--build-arg K8S_RELEASE=v1.15.7 \
|
|
|
|
|
--build-arg ETCD_VERSION=v3.3.18 \
|
2020-02-26 14:23:42 -03:00
|
|
|
--build-arg GOLANG_VERSION=1.14 \
|
|
|
|
|
--build-arg GOLANG_SHA=6d643e46ad565058c7a39dac01144172ef9bd476521f42148be59249e4b74389 \
|
2020-01-04 20:29:49 -03:00
|
|
|
--build-arg RESTY_CLI_VERSION=0.25rc2 \
|
|
|
|
|
--build-arg RESTY_CLI_SHA=a38d850441384fa037a5922ca012dcce8708d0e4abe34ad2fe4164a01b28bdfb \
|
2020-02-26 14:23:42 -03:00
|
|
|
--build-arg CHART_TESTING_VERSION=3.0.0-beta.1 \
|
|
|
|
|
--build-arg YAML_LINT_VERSION=1.13.0 \
|
|
|
|
|
--build-arg YAMALE_VERSION=1.8.0 \
|
2019-05-24 02:47:14 +02:00
|
|
|
-t $(IMAGE):$(TAG) .
|
2018-07-28 14:52:46 -04:00
|
|
|
|
|
|
|
|
docker-push:
|
2020-01-14 20:52:57 -03:00
|
|
|
docker push $(IMAGE):$(TAG)
|
|
|
|
|
docker tag $(IMAGE):$(TAG) $(IMAGE):latest
|
|
|
|
|
docker push $(IMAGE):latest
|