Files
drone-test/.woodpecker.yaml
Ask Bjørn Hansen b19fa002bd
All checks were successful
continuous-integration/drone/push Build is passing
ci/woodpecker/push/woodpecker Pipeline was successful
Add woodpecker-ci config
2026-01-25 10:41:35 -08:00

44 lines
926 B
YAML

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