Merge pull request #929 from aledbf/master
Add release task in Makefiles and avoid multiple builds
This commit is contained in:
commit
24d78cae8e
2 changed files with 9 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -67,6 +67,10 @@ docker-build:
|
||||||
docker-push:
|
docker-push:
|
||||||
make -C controllers/nginx all-push
|
make -C controllers/nginx all-push
|
||||||
|
|
||||||
|
.PHONE: release
|
||||||
|
release:
|
||||||
|
make -C controllers/nginx release
|
||||||
|
|
||||||
.PHONY: ginkgo
|
.PHONY: ginkgo
|
||||||
ginkgo:
|
ginkgo:
|
||||||
go get github.com/onsi/ginkgo/ginkgo
|
go get github.com/onsi/ginkgo/ginkgo
|
||||||
|
|
|
@ -88,7 +88,7 @@ ifeq ($(ARCH), amd64)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
push: .push-$(ARCH)
|
push: .push-$(ARCH)
|
||||||
.push-$(ARCH): .container-$(ARCH)
|
.push-$(ARCH):
|
||||||
$(DOCKER) push $(MULTI_ARCH_IMG):$(TAG)
|
$(DOCKER) push $(MULTI_ARCH_IMG):$(TAG)
|
||||||
ifeq ($(ARCH), amd64)
|
ifeq ($(ARCH), amd64)
|
||||||
$(DOCKER) push $(IMAGE):$(TAG)
|
$(DOCKER) push $(IMAGE):$(TAG)
|
||||||
|
@ -123,3 +123,6 @@ cover:
|
||||||
vet:
|
vet:
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
@go vet $(shell go list ${PKG}/... | grep -v vendor)
|
@go vet $(shell go list ${PKG}/... | grep -v vendor)
|
||||||
|
|
||||||
|
release: all-container all-push
|
||||||
|
echo "done"
|
||||||
|
|
Loading…
Reference in a new issue