Compare commits

..

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

3 changed files with 27 additions and 63 deletions

View File

@ -1,44 +1,25 @@
---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: default name: default
steps: steps:
- name: test - name: test
image: golang:1.24 image: golang:1.14.3
commands: commands:
- pwd
- go test -v - go test -v
- go build - go build
- echo "hello" > /shared/greetings.txt
- hostname >> /shared/greetings.txt
volumes:
- name: shared
path: /shared
resources: resources:
limits: limits:
cpu: 1000 cpu: 1000
memory: 512MiB memory: 300MiB
requests: requests:
cpu: 500 cpu: 500
memory: 200MiB memory: 200MiB
- name: read - name: docker
pull: if-not-exists image: askbjoernhansen/drone-kaniko:0.22-6
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
settings: settings:
repo: ask/drone-test repo: drone-builds/drone-test
registry: harbor.ntppool.org registry: harbor.ntppool.org
auto_tag: true auto_tag: true
tags: SHA7,${DRONE_SOURCE_BRANCH} tags: SHA7,${DRONE_SOURCE_BRANCH}
@ -47,14 +28,3 @@ steps:
from_secret: harbor_username from_secret: harbor_username
password: password:
from_secret: harbor_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 WORKDIR /go/src/gitea.develooper.com/ask/drone-test
ADD . . ADD . .
RUN CGO_ENABLED=1 GOOS=linux go build -o demo RUN CGO_ENABLED=0 GOOS=linux go build -o demo
FROM alpine:3.21 as production
USER root
FROM alpine:3.11 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
View File

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