Compare commits

...

5 Commits

Author SHA1 Message Date
9cf5b162bb fix(ci): use Docker network hostname for docs runner checkout
The act_runner and gitea containers share the git_default Docker
network. Use http://gitea:3000 (container DNS name) instead of
localhost, which resolves to the runner container itself.
2026-02-09 08:57:58 -06:00
23fd2593af Merge pull request 'fix(ci): use localhost:3000 for docs runner checkout' (#111) from fix/docs-checkout-localhost into main
Some checks failed
Deploy Docs / build-and-deploy (push) Failing after 0s
Build and Test / build (push) Failing after 1m47s
Reviewed-on: #111
2026-02-09 14:47:00 +00:00
c25f1b62b8 fix(ci): use localhost:3000 for docs runner checkout
Some checks failed
Build and Test / build (pull_request) Failing after 1m38s
The docs runner is on the same host as Gitea, so clone via
http://localhost:3000 instead of the public HTTPS URL which
fails to connect (port 443 unreachable from the runner).
2026-02-09 08:46:42 -06:00
10ae616f08 Merge pull request 'fix(ci): add docs workflow file to paths trigger' (#110) from fix/docs-workflow-paths into main
Some checks failed
Deploy Docs / build-and-deploy (push) Failing after 0s
Build and Test / build (push) Has been cancelled
Reviewed-on: #110
2026-02-09 14:43:59 +00:00
d6ad0fb43d fix(ci): add docs workflow file to paths trigger
Some checks failed
Build and Test / build (pull_request) Failing after 1m38s
Changes to .gitea/workflows/docs.yml itself should also trigger
a docs rebuild so workflow fixes are immediately testable.
2026-02-09 08:43:32 -06:00

View File

@@ -5,6 +5,7 @@ on:
branches: [main] branches: [main]
paths: paths:
- "docs/**" - "docs/**"
- ".gitea/workflows/docs.yml"
jobs: jobs:
build-and-deploy: build-and-deploy:
@@ -12,11 +13,21 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
run: | run: |
REPO_URL="http://gitea:3000/kindred/create.git"
if [ -d .git ]; then if [ -d .git ]; then
git fetch origin main git fetch "$REPO_URL" main
git checkout -f origin/main git checkout -f FETCH_HEAD
else else
git clone --depth 1 --branch main https://git.kindred-systems.com/kindred/create.git . git clone --depth 1 --branch main "$REPO_URL" .
fi
- name: Install mdBook
run: |
if ! command -v mdbook &>/dev/null; then
MDBOOK_VERSION="v0.5.2"
wget -q -O mdbook.tar.gz "https://github.com/rust-lang/mdBook/releases/download/${MDBOOK_VERSION}/mdbook-${MDBOOK_VERSION}-x86_64-unknown-linux-musl.tar.gz"
tar -xzf mdbook.tar.gz -C /usr/local/bin
rm mdbook.tar.gz
fi fi
- name: Build mdBook - name: Build mdBook