5 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
a4cb903627 push test
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-25 03:33:05 -07:00
4 changed files with 10 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ name: default
steps:
- name: test
image: golang:1.14.3
image: golang:1.16.3
commands:
- go test -v
- go build
@@ -17,7 +17,8 @@ steps:
memory: 200MiB
- name: docker
image: askbjoernhansen/drone-kaniko:0.22-5
image: harbor.ntppool.org/ntppool/drone-kaniko:latest
pull: always
settings:
repo: drone-builds/drone-test
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
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 .
CMD ["./demo"]

3
go.mod Normal file
View File

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

View File

@@ -1 +1 @@
Mon May 25 03:30:48 PDT 2020
Mon May 25 03:33:05 PDT 2020