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.

Derive CI registry coordinates from workflow context

Drop the vars.REGISTRY gate and the REGISTRY/IMAGE_NAME repo-var
references that have been silently skipping the image job since the
spacebee rename. Registry host is derived from GITHUB_SERVER_URL and
image name from GITHUB_REPOSITORY, lowercased for docker safety. Only
REGISTRY_USER / REGISTRY_TOKEN secrets need to be set — forks on any
Forgejo instance work with no repo-var configuration.

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

+14 -12
+14 -12
.forgejo/workflows/ci.yml
··· 30 30 31 31 image: 32 32 needs: test 33 - if: github.ref == 'refs/heads/main' && vars.REGISTRY != '' 33 + if: github.ref == 'refs/heads/main' 34 34 runs-on: docker-host 35 35 container: 36 36 image: node:22-bookworm 37 - env: 38 - # Registry coordinates come from repo/org vars+secrets so this workflow 39 - # is portable. Set REGISTRY + IMAGE_NAME as repo vars; REGISTRY_USER + 40 - # REGISTRY_TOKEN as secrets. The job is skipped if REGISTRY is unset. 41 - REGISTRY: ${{ vars.REGISTRY }} 42 - IMAGE_NAME: ${{ vars.IMAGE_NAME }} 43 37 steps: 44 38 - name: Checkout 45 39 uses: actions/checkout@v4 ··· 47 41 - name: Install Docker CLI 48 42 run: apt-get update && apt-get install -y --no-install-recommends docker.io 49 43 44 + - name: Derive registry coordinates 45 + # Registry = the forge hosting this workflow. Image = this repo's 46 + # path. No repo vars needed — forks "just work" as long as the 47 + # REGISTRY_USER / REGISTRY_TOKEN secrets are set. 48 + run: | 49 + REGISTRY="${GITHUB_SERVER_URL#http*://}" 50 + IMAGE=$(echo "$REGISTRY/$GITHUB_REPOSITORY" | tr '[:upper:]' '[:lower:]') 51 + echo "REGISTRY=$REGISTRY" >> "$GITHUB_ENV" 52 + echo "IMAGE=$IMAGE" >> "$GITHUB_ENV" 53 + 50 54 - name: Login to container registry 51 55 run: | 52 56 echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ secrets.REGISTRY_USER }}" --password-stdin 53 57 54 58 - name: Build and push 55 59 run: | 56 - docker build \ 57 - -t "$REGISTRY/$IMAGE_NAME:latest" \ 58 - -t "$REGISTRY/$IMAGE_NAME:${{ github.sha }}" . 59 - docker push "$REGISTRY/$IMAGE_NAME:latest" 60 - docker push "$REGISTRY/$IMAGE_NAME:${{ github.sha }}" 60 + docker build -t "$IMAGE:latest" -t "$IMAGE:${{ github.sha }}" . 61 + docker push "$IMAGE:latest" 62 + docker push "$IMAGE:${{ github.sha }}"