Upgrade Go and Alpine
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ask Bjørn Hansen 2021-05-06 02:22:59 -07:00
parent 7cc5c91dce
commit 2733d4f567
3 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@ name: default
steps:
- name: test
image: golang:1.14.4
image: golang:1.16.3
commands:
- go test -v
- go build

View File

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

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module gitea.develooper.com/ask/drone-test
go 1.16