Sync reading position from Moon Reader app to Bookhive atproto records
atproto bookhive ereader moonreader
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix CI: use docker-host runner for image builds

The plain `docker` runner label doesn't expose the host Docker socket, so
`docker build` fails with "Cannot connect to the Docker daemon". Split the
pipeline: test job stays on `docker` (slim uv image, manual git clone),
image job moves to `docker-host` with node:22-bookworm + apt-installed
docker.io. Matches the pattern already working in brad/vikunja-brad.

Also renames registry auth secrets to REGISTRY_USER / REGISTRY_TOKEN to
match the rest of Brad's Forgejo setup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+22 -18
+22 -18
.forgejo/workflows/ci.yml
··· 5 5 branches: [main] 6 6 pull_request: 7 7 8 + env: 9 + REGISTRY: git.brads.house 10 + IMAGE_NAME: brad/waggle 11 + 8 12 jobs: 9 13 test: 10 14 runs-on: docker-host 11 15 container: ghcr.io/astral-sh/uv:python3.11-bookworm-slim 12 16 steps: 13 - # Forgejo runner's slim image has no Node.js, so actions/checkout fails. 14 - # Clone manually instead (see global memory: feedback_ci_checkout). 17 + # The slim `docker` runner image has no Node, so actions/checkout fails. 18 + # Clone manually. (The image job below uses docker-host + node image, 19 + # where actions/checkout works fine.) 15 20 - name: Clone repo 16 21 run: | 17 22 apt-get update && apt-get install -y --no-install-recommends git ca-certificates ··· 30 35 image: 31 36 needs: test 32 37 if: github.ref == 'refs/heads/main' 33 - runs-on: docker 34 - container: docker:27-cli 38 + runs-on: docker-host 39 + container: 40 + image: node:22-bookworm 35 41 steps: 36 - - name: Clone repo 37 - run: | 38 - apk add --no-cache git 39 - git clone --depth 1 "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" . 40 - git fetch --depth 1 origin "${GITHUB_SHA}" && git checkout "${GITHUB_SHA}" 42 + - name: Checkout 43 + uses: actions/checkout@v4 41 44 42 - - name: Login to Forgejo registry 45 + - name: Install Docker CLI 46 + run: apt-get update && apt-get install -y --no-install-recommends docker.io 47 + 48 + - name: Login to Forgejo Registry 43 49 run: | 44 - echo "${FORGEJO_TOKEN}" | docker login git.brads.house -u "${FORGEJO_USER}" --password-stdin 45 - env: 46 - FORGEJO_USER: ${{ secrets.FORGEJO_USER }} 47 - FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }} 50 + echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ secrets.REGISTRY_USER }} --password-stdin 48 51 49 52 - name: Build and push 50 53 run: | 51 - IMAGE=git.brads.house/brad/waggle 52 - docker build -t "${IMAGE}:latest" -t "${IMAGE}:${GITHUB_SHA::8}" . 53 - docker push "${IMAGE}:latest" 54 - docker push "${IMAGE}:${GITHUB_SHA::8}" 54 + docker build \ 55 + -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \ 56 + -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} . 57 + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest 58 + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}