mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
chore(ci): fix default branch in Dockerfiles (#875)
This commit is contained in:
parent
da56c215db
commit
a5ffb653df
3 changed files with 8 additions and 8 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
FROM golang:alpine as builder
|
||||
|
||||
# use version (for example "v0.3.3") or "master"
|
||||
ARG WATCHTOWER_VERSION=master
|
||||
# use version (for example "v0.3.3") or "main"
|
||||
ARG WATCHTOWER_VERSION=main
|
||||
|
||||
RUN apk add --no-cache \
|
||||
alpine-sdk \
|
||||
|
@ -18,7 +18,7 @@ COPY . /watchtower
|
|||
RUN \
|
||||
cd /watchtower && \
|
||||
\
|
||||
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' . && \
|
||||
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 go test ./... -v
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue