From a675a9bbf49f1c6cb376af2b8578892480c62708 Mon Sep 17 00:00:00 2001 From: opencodecabilloteu Date: Sun, 18 Oct 2026 13:22:13 -0400 Subject: [PATCH] ci(tag): dispatch Renovate on tf-depl-kubernetes once the release image is pushed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A release only reached perso_private/tf-depl-kubernetes on the next hourly Renovate scan, so the image bump PR could lag up to an hour behind the tag. After the image push completes, dispatch that repo's Renovate workflow through the Gitea API (workflow_dispatch is already enabled there). It authenticates with the RENOVATE_TOKEN org secret of this organisation — the same token the Renovate instance itself uses, no extra credential. The job fails loudly so a rotated token shows up instead of the trigger silently going missing. --- .gitea/workflows/tag.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitea/workflows/tag.yaml b/.gitea/workflows/tag.yaml index 30cd26c..6dd6290 100644 --- a/.gitea/workflows/tag.yaml +++ b/.gitea/workflows/tag.yaml @@ -38,3 +38,22 @@ jobs: pull: true cache-from: type=gha cache-to: type=gha,mode=max + + trigger-renovate: + # The deployment repo perso_private/tf-depl-kubernetes pins this image; its + # Renovate instance only scans hourly, so this dispatch opens the image bump + # PR within minutes of the release instead of up to an hour later. + needs: [build-push] + runs-on: ubuntu-latest + steps: + - name: Trigger Renovate on perso_private/tf-depl-kubernetes + # needs: build-push — Renovate reads Docker Hub, so a scan started before + # the push lands would only see the previous release. + # RENOVATE_TOKEN is the org-level secret of this organisation. + run: | + curl -sS -f -X POST \ + -u "renovate:${{ secrets.RENOVATE_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{{"ref":"main"}}' \ + "https://scm.cabillot.eu/api/v1/repos/perso_private/tf-depl-kubernetes/actions/workflows/renovate.yaml/dispatches" + echo "Renovate dispatched on perso_private/tf-depl-kubernetes" -- 2.54.0