mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 01:19:02 +01:00
Update Go dependencies and minimal Go version to 1.20 (#1650)
Signed-off-by: 6543 <6543@obermui.de> Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM --platform=$BUILDPLATFORM golang:1.18 AS build
|
||||
FROM --platform=$BUILDPLATFORM golang:1.20 AS build
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
@@ -11,7 +11,7 @@ FROM scratch
|
||||
ENV GODEBUG=netdns=go
|
||||
EXPOSE 3000
|
||||
|
||||
# copy certs from golang:1.18 image
|
||||
# copy certs from build image
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
# copy agent binary
|
||||
COPY --from=build /src/dist/woodpecker-agent /bin/
|
||||
|
||||
Reference in New Issue
Block a user