# Weekly Renovate run (config in /renovate.json5). --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: self-hosted 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 \ -e RENOVATE_TOKEN \ -e GITHUB_COM_TOKEN \ -e LOG_LEVEL=info \ renovate/renovate:44