diff --git a/.drone.yml b/.drone.yml index 157dcdd..fc6105e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ... diff --git a/Dockerfile b/Dockerfile index 53f45bf..20d1ad3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]