ci: disable built-in clone; manual git clone from git.pp1l.de in setup step\n\n- avoid localhost:3000 clone issues\n- checkout by commit SHA or branch\n- keep shared artifact layout (.build)
This commit is contained in:
parent
6f5824203f
commit
846e76e0db
|
|
@ -1,13 +1,19 @@
|
|||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
setup:
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache bash curl git
|
||||
- mkdir -p ./.build
|
||||
- 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
|
||||
- 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
|
||||
- chmod -R a+rx ./.build || true
|
||||
|
||||
syntax_and_shellcheck:
|
||||
|
|
|
|||
Loading…
Reference in New Issue