From 4d4ae955d9e945cbbe537215a77d90aeac3a2dd7 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Wed, 22 Jul 2026 14:20:14 +0000 Subject: [PATCH] refactor(ci): add release + renovate workflows (identical across all projects) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All 3 projects share exact same 3 workflows: - ci.yml (ci-full) → build, test, coverage, docker, trivy - release.yml (ci-release) → version, publish, release, docker - renovate.yml (ci-renovate) → dependency updates --- .forgejo/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++ .forgejo/workflows/renovate.yml | 31 +++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .forgejo/workflows/release.yml create mode 100644 .forgejo/workflows/renovate.yml diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml new file mode 100644 index 0000000..d2c863c --- /dev/null +++ b/.forgejo/workflows/release.yml @@ -0,0 +1,35 @@ +# Release Pipeline (unifiée via nonobis/templates) +name: Release + +on: + push: + tags: + - 'v*' + +concurrency: + group: release-${{ forgejo.ref }} + cancel-in-progress: false + +jobs: + release: + runs-on: debian-12 + enable-openid-connect: true + steps: + - uses: https://forgejo.tordais.cc/actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: https://forgejo.tordais.cc/actions/checkout@v4 + with: + repository: nonobis/templates + token: ${{ secrets.TEMPLATES_PAT }} + path: .ci + ref: main + + - uses: ./.ci/.forgejo/actions/ci-release + with: + project: heimdall + vault-url: https://vault.tordais.cc + publish-project: src/Heimdall.Web/Heimdall.Web.csproj + dockerfile: docker/Dockerfile + docker-image: nonobis/heimdall diff --git a/.forgejo/workflows/renovate.yml b/.forgejo/workflows/renovate.yml new file mode 100644 index 0000000..f498456 --- /dev/null +++ b/.forgejo/workflows/renovate.yml @@ -0,0 +1,31 @@ +# Renovate Dependency Updates (unifiée via nonobis/templates) +name: Renovate + +on: + schedule: + - cron: '0 8 * * 1' + workflow_dispatch: + +env: + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + +concurrency: + group: renovate-${{ forgejo.ref }} + cancel-in-progress: true + +jobs: + renovate: + runs-on: debian-12 + steps: + - uses: https://forgejo.tordais.cc/actions/checkout@v4 + + - uses: https://forgejo.tordais.cc/actions/checkout@v4 + with: + repository: nonobis/templates + token: ${{ secrets.TEMPLATES_PAT }} + path: .ci + ref: main + + - uses: ./.ci/.forgejo/actions/ci-renovate + with: + project: nonobis/heimdall