From 010b1146a0d48cc5a77220e0e897493d125e1d3c Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 2 Jan 2025 04:21:55 -0600 Subject: [PATCH] self-host renovate --- .forgejo/actions/renovate/action.yaml | 12 +++++------- .forgejo/workflows/renovate.yaml | 3 +-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.forgejo/actions/renovate/action.yaml b/.forgejo/actions/renovate/action.yaml index 6fc0820..fbcf606 100644 --- a/.forgejo/actions/renovate/action.yaml +++ b/.forgejo/actions/renovate/action.yaml @@ -52,14 +52,12 @@ runs: RENOVATE_ENDPOINT: ${{ github.server_url }} RENOVATE_GIT_AUTHOR: 'Renovate Bot ' RENOVATE_PLATFORM: gitea - RENOVATE_REPOSITORY_CACHE: 'enabled' + RENOVATE_REPOSITORY_CACHE: 'disabled' RENOVATE_TOKEN: ${{ inputs.token }} - # RENOVATE_HOST_RULES: |- - # [ - # {"matchHost":"docker.io","hostType":"docker","username":"${{ inputs.docker-username }}","password":"${{ inputs.docker-password }}"}, - # {"matchHost":"ghcr.io","hostType":"docker","username":"${{ inputs.github-username }}","password":"${{ inputs.github-token }}"}, - # {"matchHost":"github.com","hostType":"github","token":"${{ inputs.github-token }}"} - # ] + RENOVATE_HOST_RULES: |- + [ + {"matchHost":"docker.io","hostType":"docker","username":"${{ inputs.docker-username }}","password":"${{ inputs.docker-password }}"}, + ] GIT_AUTHOR_NAME: 'Renovate Bot' GIT_AUTHOR_EMAIL: 'smeagol@hsn.dev' GIT_COMMITTER_NAME: 'Renovate Bot' diff --git a/.forgejo/workflows/renovate.yaml b/.forgejo/workflows/renovate.yaml index 5ad296e..54c195b 100644 --- a/.forgejo/workflows/renovate.yaml +++ b/.forgejo/workflows/renovate.yaml @@ -19,7 +19,7 @@ jobs: name: Renovate runs-on: docker-x86_64 container: - image: ghcr.io/renovatebot/renovate:39.87.0@sha256:3a17d23d6fb3ca2169b079bf2c970cb25567be639ba42bb2064750973b69b83c + image: git.hsn.dev/renovate-config/renovate:39.87.0@sha256:3a17d23d6fb3ca2169b079bf2c970cb25567be639ba42bb2064750973b69b83c steps: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 @@ -31,7 +31,6 @@ jobs: endpoint: https://git.hsn.dev/api/v1/ token: ${{ secrets.RUNAS_USER_TOKEN }} args: --platform gitea --autodiscover - github-username: ${{ secrets.GH_USERNAME }} github-token: ${{ secrets.GH_TOKEN }} docker-username: ${{ secrets.DOCKER_USERNAME }} docker-password: ${{ secrets.DOCKER_PASSWORD }}