Compare commits

..

No commits in common. "main" and "v0.2.2" have entirely different histories.
main ... v0.2.2

4 changed files with 29 additions and 64 deletions

View File

@ -1,60 +1,31 @@
---
kind: pipeline
type: kubernetes
name: default
steps:
- name: test
image: golang:1.24
- name: test
image: golang:1.14.3
commands:
- pwd
- go test -v
- go build
- echo "hello" > /shared/greetings.txt
- hostname >> /shared/greetings.txt
volumes:
- name: shared
path: /shared
resources:
limits:
cpu: 1000
memory: 512MiB
memory: 300MiB
requests:
cpu: 500
memory: 200MiB
- name: read
pull: if-not-exists
image: alpine
volumes:
- name: shared
path: /shared
commands:
- pwd
- ls /shared
- cat /shared/greetings.txt
- name: docker
image: harbor.ntppool.org/ntppool/drone-kaniko:main
pull: always
- name: docker
image: askbjoernhansen/drone-kaniko:0.22-4
#image: banzaicloud/drone-kaniko
settings:
repo: ask/drone-test
repo: drone-builds/drone-test
registry: harbor.ntppool.org
auto_tag: true
tags: SHA7,${DRONE_SOURCE_BRANCH}
tags: ${DRONE_SOURCE_BRANCH},SHA7
cache: true
username:
from_secret: harbor_username
password:
from_secret: harbor_password
volumes:
- name: shared
claim:
name: go-pkg
---
kind: signature
hmac: 2b21527432d95cf52636c65e091d9129c198299a425d12b2860d468262234d62
...

View File

@ -1,11 +1,8 @@
FROM golang:1.24-alpine3.21 as builder
FROM golang:1.14.3 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.21 as production
USER root
RUN CGO_ENABLED=0 GOOS=linux go build -o demo
FROM alpine:3.11 as production
COPY --from=builder /go/src/gitea.develooper.com/ask/drone-test/demo .
CMD ["./demo"]

3
go.mod
View File

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

View File

@ -1 +1 @@
Mon May 25 03:33:05 PDT 2020
Mon May 25 03:28:16 PDT 2020