Compare commits

...

4 Commits

Author SHA1 Message Date
2df1862cdd Upgrade to go 1.23
All checks were successful
continuous-integration/drone/push Build is passing
2024-11-27 19:16:27 -08:00
c0c61a71c2 go 1.21.3
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-22 17:08:40 -07:00
3489bd14fc Test that docker can be USER root
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-12 11:16:45 -07:00
cb09f8818d Update Go and Alpine
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-03 17:44:32 -07:00
3 changed files with 10 additions and 6 deletions

View File

@ -5,8 +5,9 @@ name: default
steps:
- name: test
image: golang:1.17.3
image: golang:1.23.3
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: d251c6c49b413a1db16481ea7f75050ab2775ab9ec9e52c8770f06232cf28058
...

View File

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

2
go.mod
View File

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