2026-01-26 10:14:44 +08:00
|
|
|
when:
|
2026-01-26 11:06:55 +08:00
|
|
|
- event: [push, pull_request, manual]
|
2026-01-26 10:14:44 +08:00
|
|
|
branch: main
|
2026-01-26 10:32:58 +08:00
|
|
|
clone:
|
|
|
|
|
git:
|
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
|
settings:
|
|
|
|
|
depth: 50
|
|
|
|
|
lfs: false
|
2026-01-26 10:52:13 +08:00
|
|
|
use-ssh: true
|
2026-01-26 10:41:59 +08:00
|
|
|
|
2026-01-26 10:14:44 +08:00
|
|
|
steps:
|
|
|
|
|
- name: build
|
|
|
|
|
image: debian
|
|
|
|
|
commands:
|
|
|
|
|
- echo "This is the build step"
|
|
|
|
|
- echo "binary-data-123" > executable
|
|
|
|
|
- name: a-test-step
|
2026-01-26 10:49:46 +08:00
|
|
|
image: golang:1.25
|
2026-01-26 10:14:44 +08:00
|
|
|
commands:
|
2026-01-26 10:49:46 +08:00
|
|
|
go build -v \
|
|
|
|
|
-p=4 \
|
|
|
|
|
-trimpath \
|
|
|
|
|
-buildvcs=false \
|
|
|
|
|
-ldflags "-s -w -buildid= -extldflags '-static'" \
|
|
|
|
|
-o ./build/${CI_COMMIT_SHA} \
|
|
|
|
|
./logic
|