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

This commit is contained in:
Ask Bjørn Hansen 2023-06-03 17:33:22 -07:00
parent 57958bd383
commit cb09f8818d
2 changed files with 6 additions and 5 deletions

View File

@ -5,8 +5,9 @@ name: default
steps:
- name: test
image: golang:1.17.3
image: golang:1.20.4
commands:
- pwd
- go test -v
- go build
- echo "hello" > /shared/greetings.txt
@ -34,7 +35,7 @@ steps:
- cat /shared/greetings.txt
- name: docker
image: harbor.ntppool.org/ntppool/drone-kaniko:1.7.0-1
image: harbor.ntppool.org/ntppool/drone-kaniko:main
pull: always
settings:
repo: ask/drone-test
@ -54,6 +55,6 @@ volumes:
---
kind: signature
hmac: 10ad8f183db2d1a7a1062bd1f0aab9e7292c2e87accc080ed2340aa6989e1695
hmac: a594c687217d9d5edae949bb0d64cd2db5a259199a38bc966c16494d5d4424fe
...

View File

@ -1,8 +1,8 @@
FROM golang:1.16.4-alpine3.13 as builder
FROM golang:1.20.4-alpine3.18 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.13 as production
FROM alpine:3.18 as production
COPY --from=builder /go/src/gitea.develooper.com/ask/drone-test/demo .
CMD ["./demo"]