fix: use separate pipeline files instead of multi-document YAML

YAML anchors don't work across document boundaries in multi-document
files. Using separate files in .woodpecker/ directory instead, which
is the recommended approach and matches WeightTracker's pattern.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Barry Walker
2026-01-13 14:31:54 -05:00
parent dccb3729aa
commit 0f2a6937c4
2 changed files with 27 additions and 37 deletions
+21
View File
@@ -0,0 +1,21 @@
# Pull Request Pipeline - Build and test only
when:
- event: pull_request
steps:
- name: restore
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands:
- dotnet restore
- name: build
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands:
- dotnet build --no-restore -c Release
depends_on: [restore]
- name: test
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands:
- dotnet test --no-build -c Release --logger "console;verbosity=detailed"
depends_on: [build]
+6 -37
View File
@@ -1,53 +1,22 @@
variables: # Release Pipeline - Build, test, version, package, release
- &dotnet_image "mcr.microsoft.com/dotnet/sdk:10.0-preview"
- &kaniko_image "gcr.io/kaniko-project/executor:debug"
# =============================================================================
# PULL REQUESTS - Build and test only
# =============================================================================
when:
- event: pull_request
steps:
- name: restore
image: *dotnet_image
commands:
- dotnet restore
- name: build
image: *dotnet_image
commands:
- dotnet build --no-restore -c Release
depends_on: [restore]
- name: test
image: *dotnet_image
commands:
- dotnet test --no-build -c Release --logger "console;verbosity=detailed"
depends_on: [build]
---
# =============================================================================
# MAIN BRANCH - Build, test, version, release
# =============================================================================
when: when:
- event: push - event: push
branch: main branch: main
steps: steps:
- name: restore - name: restore
image: *dotnet_image image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands: commands:
- dotnet restore - dotnet restore
- name: build - name: build
image: *dotnet_image image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands: commands:
- dotnet build --no-restore -c Release - dotnet build --no-restore -c Release
depends_on: [restore] depends_on: [restore]
- name: test - name: test
image: *dotnet_image image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands: commands:
- dotnet test --no-build -c Release --logger "console;verbosity=detailed" - dotnet test --no-build -c Release --logger "console;verbosity=detailed"
depends_on: [build] depends_on: [build]
@@ -111,7 +80,7 @@ steps:
# Package NuGet # Package NuGet
- name: package - name: package
image: *dotnet_image image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands: commands:
- VERSION=$(cat .version) - VERSION=$(cat .version)
- echo "Packaging version $VERSION" - echo "Packaging version $VERSION"
@@ -121,7 +90,7 @@ steps:
# Build and push Docker with Kaniko # Build and push Docker with Kaniko
- name: docker - name: docker
image: *kaniko_image image: gcr.io/kaniko-project/executor:debug
environment: environment:
GHCR_USERNAME: GHCR_USERNAME:
from_secret: github_username from_secret: github_username