Cleanup build of nginx image (#5085)
This commit is contained in:
parent
12314aa1ac
commit
36a8134cf1
1 changed files with 10 additions and 13 deletions
|
@ -12,6 +12,11 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
.DEFAULT_GOAL:=container
|
||||||
|
|
||||||
|
# set default shell
|
||||||
|
SHELL=/bin/bash -o pipefail
|
||||||
|
|
||||||
# 0.0.0 shouldn't clobber any released builds
|
# 0.0.0 shouldn't clobber any released builds
|
||||||
TAG ?= 0.98
|
TAG ?= 0.98
|
||||||
REGISTRY ?= quay.io/kubernetes-ingress-controller
|
REGISTRY ?= quay.io/kubernetes-ingress-controller
|
||||||
|
@ -25,13 +30,9 @@ EMPTY :=
|
||||||
SPACE := $(EMPTY) $(EMPTY)
|
SPACE := $(EMPTY) $(EMPTY)
|
||||||
COMMA := ,
|
COMMA := ,
|
||||||
|
|
||||||
.PHONY: all
|
|
||||||
all: container
|
|
||||||
|
|
||||||
.PHONY: container
|
.PHONY: container
|
||||||
container:
|
container:
|
||||||
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build \
|
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build \
|
||||||
--no-cache \
|
|
||||||
--progress plain \
|
--progress plain \
|
||||||
--platform $(subst $(SPACE),$(COMMA),$(PLATFORMS)) \
|
--platform $(subst $(SPACE),$(COMMA),$(PLATFORMS)) \
|
||||||
--tag $(IMAGE):$(TAG) rootfs
|
--tag $(IMAGE):$(TAG) rootfs
|
||||||
|
@ -49,10 +50,6 @@ push: container
|
||||||
$(foreach PLATFORM,$(PLATFORMS), \
|
$(foreach PLATFORM,$(PLATFORMS), \
|
||||||
docker push $(IMAGE)-$(PLATFORM):$(TAG);)
|
docker push $(IMAGE)-$(PLATFORM):$(TAG);)
|
||||||
|
|
||||||
ifeq ($(ARCH), amd64)
|
|
||||||
docker push $(IMAGE):$(TAG)
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: push
|
release: push
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
Loading…
Reference in a new issue