fix(ci): use /tmp for checkout and build, avoid workspace #15

Merged
radu merged 1 commit from fix/ci-v2 into main 2026-07-20 10:11:22 +00:00
Owner

Root cause identified via honest diagnostic (#51609): git clone to a new empty directory works, but git clone into the cursorrent directory (the Forgejo runner workspace) fails because the workspace already contains files.

This version clones to /tmp/build (a fresh directory), builds there, and deploys from there - avoiding all workspace-related issues. No shopt, no rm -rf, no shell-specific syntax.

Root cause identified via honest diagnostic (#51609): git clone to a new empty directory works, but git clone into the cursorrent directory (the Forgejo runner workspace) fails because the workspace already contains files. This version clones to /tmp/build (a fresh directory), builds there, and deploys from there - avoiding all workspace-related issues. No shopt, no rm -rf, no shell-specific syntax.
Avoid the Forgejo runner workspace entirely - clone to /tmp/build,
build there, and deploy from there. This sidesteps the workspace
already-exists issue that broke git clone into the current directory.

Also uses working-directory for Hugo build to avoid cd commands.
radu merged commit 22cb1628f8 into main 2026-07-20 10:11:22 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
radu/blog!15
No description provided.