Add woodpecker-ci config
All checks were successful
continuous-integration/drone/push Build is passing
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-01-25 10:41:35 -08:00
parent a6ecdb1d46
commit b19fa002bd

43
.woodpecker.yaml Normal file
View File

@@ -0,0 +1,43 @@
steps:
- name: test
image: golang:1.25
commands:
- pwd
- go test -v
- go build
- echo "hello" > /shared/greetings.txt
- hostname >> /shared/greetings.txt
volumes:
- go-pkg:/shared
backend_options:
kubernetes:
resources:
limits:
cpu: 1000m
memory: 512Mi
requests:
cpu: 500m
memory: 200Mi
- name: read
image: alpine
commands:
- pwd
- ls /shared
- cat /shared/greetings.txt
volumes:
- go-pkg:/shared
- name: docker
image: harbor.ntppool.org/ntppool/drone-kaniko:main
pull: true
settings:
repo: ask/drone-test
registry: harbor.ntppool.org
auto_tag: true
tags: SHA7,${CI_COMMIT_SOURCE_BRANCH}
cache: true
username:
from_secret: harbor_username
password:
from_secret: harbor_password