Compare commits

...

3 Commits

Author SHA1 Message Date
40bf0e4ae6 fix(ci): install mdbook in docs runner container
Some checks failed
Build and Test / build (pull_request) Failing after 1m37s
The act_runner container does not have mdbook pre-installed.
Download the musl static binary from GitHub releases before
building the docs.
2026-02-09 08:58:38 -06:00
9bd5a7def1 Merge pull request 'fix(ci): use Docker network hostname for docs runner checkout' (#112) from fix/docs-checkout-docker-network into main
Some checks failed
Deploy Docs / build-and-deploy (push) Failing after 31s
Build and Test / build (push) Failing after 1m21s
Reviewed-on: #112
2026-02-09 14:56:02 +00:00
ccc372b2d1 fix(ci): use Docker network hostname for docs runner checkout
Some checks failed
Build and Test / build (pull_request) Failing after 1m42s
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:53:39 -06:00

View File

@@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout
run: |
REPO_URL="http://localhost:3000/kindred/create.git"
REPO_URL="http://gitea:3000/kindred/create.git"
if [ -d .git ]; then
git fetch "$REPO_URL" main
git checkout -f FETCH_HEAD
@@ -21,6 +21,15 @@ jobs:
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
- name: Build mdBook
run: mdbook build docs/