|
|
|
@ -18,7 +18,7 @@ RUN git clone --branch "${WATCHTOWER_VERSION}" https://github.com/containrrr/wat
|
|
|
|
|
RUN \
|
|
|
|
|
cd watchtower && \
|
|
|
|
|
\
|
|
|
|
|
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X github.com/containrrr/watchtower/cmd.version=$(git describe --tags)" . && \
|
|
|
|
|
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X github.com/containrrr/watchtower/internal/meta.Version=$(git describe --tags)" . && \
|
|
|
|
|
GO111MODULE=on go test ./... -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|