mirror of
https://github.com/fluxcd/flagger.git
synced 2026-02-14 18:10:00 +00:00
Run controller tests only
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user