fix: skip default clone to avoid LFS failure

Woodpecker's default clone step fails when git-lfs isn't installed.
Using manual clone with alpine/git instead.

🤖 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:41:54 -05:00
parent 45ad30c0b4
commit 5cd4ef8401
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -2,11 +2,20 @@
when: when:
- event: pull_request - event: pull_request
skip_clone: true
steps: steps:
- name: clone
image: alpine/git
commands:
- git clone --depth=1 ${CI_REPO_CLONE_URL} .
- git checkout ${CI_COMMIT_SHA}
- name: restore - name: restore
image: mcr.microsoft.com/dotnet/sdk:10.0-preview image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands: commands:
- dotnet restore - dotnet restore
depends_on: [clone]
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:10.0-preview image: mcr.microsoft.com/dotnet/sdk:10.0-preview
+9
View File
@@ -3,11 +3,20 @@ when:
- event: push - event: push
branch: main branch: main
skip_clone: true
steps: steps:
- name: clone
image: alpine/git
commands:
- git clone --depth=50 --tags ${CI_REPO_CLONE_URL} .
- git checkout ${CI_COMMIT_SHA}
- name: restore - name: restore
image: mcr.microsoft.com/dotnet/sdk:10.0-preview image: mcr.microsoft.com/dotnet/sdk:10.0-preview
commands: commands:
- dotnet restore - dotnet restore
depends_on: [clone]
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:10.0-preview image: mcr.microsoft.com/dotnet/sdk:10.0-preview