4 Commits

Author SHA1 Message Date
23f8755c95 always pull kaniko image
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-29 19:26:39 -07:00
c24b9e4cdc Update go
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
2021-05-25 00:00:53 -07:00
2733d4f567 Upgrade Go and Alpine
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-06 02:24:24 -07:00
7cc5c91dce Upgrade Go, Kaniko and Alpine 2020-06-25 21:59:45 -07:00
3 changed files with 9 additions and 5 deletions

View File

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

View File

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

3
go.mod Normal file
View File

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