Files
stpweb/.gitea/workflows/renovate.yaml
T
adamfandClaude Opus 5.5 3139e8e239
Test and deploy / test (push) Successful in 1m40s
Test and deploy / deploy (push) Successful in 4s
CI: run tests and Renovate on the build VM
The test job and Renovate move to stpbuild's runner (label `build`), a
new Proxmox VM; deploy and maintenance stay on stpvm (`self-hosted`).
test fetches over HTTP with the job's own GITEA_TOKEN. DEPLOYMENT.md
gains a "Build VM" section, and CLAUDE.md says where each job runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:00:13 +00:00

39 lines
1.6 KiB
YAML

# Weekly Renovate run (config in /renovate.json5), on the build VM (stpbuild,
# label `build`). --network host uses the
# host's /etc/hosts pin to reach Gitea on the LAN, and RENOVATE_GIT_URL=endpoint
# stops it cloning via the public ROOT_URL. Secrets are passed as bare `-e NAME`
# so they never appear in the process list. Gitea refuses secret names starting
# GITHUB_, hence RENOVATE_GITHUB_COM_TOKEN.
name: Renovate
on:
schedule:
# Clear of the Sunday maintenance rebuild.
- cron: "0 4 * * 1"
workflow_dispatch:
jobs:
renovate:
runs-on: build
steps:
- name: Run Renovate
shell: bash
env:
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_COM_TOKEN }}
run: |
set -eu
if [ -z "$RENOVATE_TOKEN" ]; then
echo "The RENOVATE_TOKEN Actions secret is not set (repo Settings -> Actions -> Secrets)."
exit 1
fi
docker run --rm --pull always --network host \
-e RENOVATE_PLATFORM=gitea \
-e RENOVATE_ENDPOINT=http://git.adam-french.co.uk:3000/api/v1 \
-e RENOVATE_GIT_URL=endpoint \
-e RENOVATE_REPOSITORIES=adamf/stpweb,adamf/stpgit,adamf/stppriv,adamf/stpcore \
-e RENOVATE_TOKEN \
-e GITHUB_COM_TOKEN \
-e LOG_LEVEL=info \
renovate/renovate:44