Add woodpecker-ci config
This commit is contained in:
43
.woodpecker.yaml
Normal file
43
.woodpecker.yaml
Normal 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
|
||||
Reference in New Issue
Block a user