Skip to content

Commit

Permalink
release tools
Browse files Browse the repository at this point in the history
This synchronizes the build rules with other repos and (as part of
that) bumps the Go version to 1.11.1.
  • Loading branch information
pohly committed Jan 24, 2019
1 parent 6766b11 commit 39a1be1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 49 deletions.
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .travis.yml
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ FROM alpine
LABEL maintainers="Kubernetes Authors"
LABEL description="CSI Node driver registrar"

COPY ./bin/node-driver-registrar node-driver-registrar
ENTRYPOINT ["/node-driver-registrar"]
COPY ./bin/csi-node-driver-registrar csi-node-driver-registrar
ENTRYPOINT ["/csi-node-driver-registrar"]
36 changes: 3 additions & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

.PHONY: all node-driver-registrar clean test
CMDS=csi-node-driver-registrar
all: build

REGISTRY_NAME=quay.io/k8scsi
IMAGE_NAME=csi-node-driver-registrar
IMAGE_VERSION=canary
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION)

REV=$(shell git describe --long --tags --match='v*' --dirty)

ifdef V
TESTARGS = -v -args -alsologtostderr -v 5
else
TESTARGS =
endif


all: node-driver-registrar

node-driver-registrar:
mkdir -p bin
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/node-driver-registrar ./cmd/node-driver-registrar

clean:
rm -rf bin

container: node-driver-registrar
docker build -t $(IMAGE_TAG) .

push: container
docker push $(IMAGE_TAG)

test:
go test `go list ./... | grep -v 'vendor'` $(TESTARGS)
go vet `go list ./... | grep -v vendor`
include release-tools/build.make
File renamed without changes.
File renamed without changes.

0 comments on commit 39a1be1

Please sign in to comment.