Run controller tests only

This commit is contained in:
Stefan Prodan
2018-09-24 20:41:49 +03:00
parent 3fa333fa49
commit c38ca4270f
2 changed files with 7 additions and 8 deletions

View File

@@ -6,13 +6,12 @@ WORKDIR /go/src/github.com/stefanprodan/steerer
COPY . .
RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*") && \
VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') && \
GIT_COMMIT=$(git rev-list -1 HEAD) && \
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
-X github.com/stefanprodan/steerer/pkg/version.VERSION=${VERSION} \
-X github.com/stefanprodan/steerer/pkg/version.REVISION=${GIT_COMMIT}" \
-a -installsuffix cgo -o steerer ./cmd/controller/*
RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags | sed 's/tags\///') && \
GIT_COMMIT=$(git rev-list -1 HEAD) && \
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w \
-X github.com/stefanprodan/steerer/pkg/version.VERSION=${VERSION} \
-X github.com/stefanprodan/steerer/pkg/version.REVISION=${GIT_COMMIT}" \
-a -installsuffix cgo -o steerer ./cmd/controller/*
FROM alpine:3.8