ci: fix YAML schema error (remove clone.disable); rely on built-in clone and copy workspace to .build
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Automation Admin 2025-08-15 17:21:06 +00:00
parent 9acb29c427
commit 0418e1d59d
1 changed files with 4 additions and 10 deletions

View File

@ -1,19 +1,13 @@
clone:
disable: true
steps:
setup:
image: alpine:latest
commands:
- apk add --no-cache bash curl git
- mkdir -p ./.build
- REPO_OWNER=${CI_REPO_OWNER:-pp1l}; REPO_NAME=${CI_REPO_NAME:-gameadm}
- REPO_URL=https://git.pp1l.de/${REPO_OWNER}/${REPO_NAME}.git
- git clone "$REPO_URL" ./.build/repo
- BR=${CI_COMMIT_BRANCH:-${CI_BRANCH:-main}}; REV=${CI_COMMIT_SHA:-${CI_COMMIT:-}}; [ -n "$REV" ] && git -C ./.build/repo checkout "$REV" || git -C ./.build/repo checkout "$BR" || true
- test -f ./.build/repo/install.sh && cp ./.build/repo/install.sh ./.build/install.sh || true
- test -d ./.build/repo/bin && cp -r ./.build/repo/bin ./.build/ || true
- test -d ./.build/repo/modules && cp -r ./.build/repo/modules ./.build/ || true
- cp -r . ./.build/repo
- test -f ./install.sh && cp ./install.sh ./.build/install.sh || true
- test -d ./bin && cp -r ./bin ./.build/ || true
- test -d ./modules && cp -r ./modules ./.build/ || true
- chmod -R a+rx ./.build || true
syntax_and_shellcheck: