28 lines
602 B
Go
28 lines
602 B
Go
when:
|
|
- event: [push, pull_request, manual]
|
|
branch: main
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
depth: 50
|
|
lfs: false
|
|
use-ssh: true
|
|
|
|
steps:
|
|
- name: build
|
|
image: debian
|
|
commands:
|
|
- echo "This is the build step"
|
|
- echo "binary-data-123" > executable
|
|
- name: a-test-step
|
|
image: golang:1.25
|
|
commands:
|
|
go build -v \
|
|
-p=4 \
|
|
-trimpath \
|
|
-buildvcs=false \
|
|
-ldflags "-s -w -buildid= -extldflags '-static'" \
|
|
-o ./build/${CI_COMMIT_SHA} \
|
|
./logic
|