Upgrade Go, Kaniko and Alpine

This commit is contained in:
Ask Bjørn Hansen 2020-06-25 21:54:42 -07:00
parent a4cb903627
commit 7cc5c91dce
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ name: default
steps:
- name: test
image: golang:1.14.3
image: golang:1.14.4
commands:
- go test -v
- go build
@ -17,7 +17,7 @@ steps:
memory: 200MiB
- name: docker
image: askbjoernhansen/drone-kaniko:0.22-6
image: harbor.ntppool.org/ntppool/drone-kaniko:latest
settings:
repo: drone-builds/drone-test
registry: harbor.ntppool.org

View File

@ -1,8 +1,8 @@
FROM golang:1.14.3 as builder
FROM golang:1.14.4-alpine3.12 as builder
WORKDIR /go/src/gitea.develooper.com/ask/drone-test
ADD . .
RUN CGO_ENABLED=0 GOOS=linux go build -o demo
RUN CGO_ENABLED=1 GOOS=linux go build -o demo
FROM alpine:3.11 as production
FROM alpine:3.12 as production
COPY --from=builder /go/src/gitea.develooper.com/ask/drone-test/demo .
CMD ["./demo"]