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:
|
||||
make -C controllers/nginx all-push
|
||||
|
||||
.PHONE: release
|
||||
release:
|
||||
make -C controllers/nginx release
|
||||
|
||||
.PHONY: ginkgo
|
||||
ginkgo:
|
||||
go get github.com/onsi/ginkgo/ginkgo
|
||||
|
|
|
@ -88,13 +88,13 @@ ifeq ($(ARCH), amd64)
|
|||
endif
|
||||
|
||||
push: .push-$(ARCH)
|
||||
.push-$(ARCH): .container-$(ARCH)
|
||||
.push-$(ARCH):
|
||||
$(DOCKER) push $(MULTI_ARCH_IMG):$(TAG)
|
||||
ifeq ($(ARCH), amd64)
|
||||
$(DOCKER) push $(IMAGE):$(TAG)
|
||||
endif
|
||||
|
||||
clean:
|
||||
clean:
|
||||
$(DOCKER) rmi -f $(MULTI_ARCH_IMG):$(TAG) || true
|
||||
|
||||
build: clean
|
||||
|
@ -123,3 +123,6 @@ cover:
|
|||
vet:
|
||||
@echo "+ $@"
|
||||
@go vet $(shell go list ${PKG}/... | grep -v vendor)
|
||||
|
||||
release: all-container all-push
|
||||
echo "done"
|
||||
|
|
Loading…
Reference in a new issue