From 2b8fc19822dd20902ada224beda271e10ddd80b8 Mon Sep 17 00:00:00 2001 From: Aleksey Sabilin Date: Sat, 1 Aug 2026 18:43:46 +0300 Subject: [PATCH] ci: extract wipe-mnesia into standalone workflows [skip ci] Move IFT/stage Mnesia wipe out of CI pipeline choice so Gitea Actions shows them as separate dispatch workflows. --- .gitea/workflows/ci.yml | 29 -------------------------- .gitea/workflows/wipe-mnesia-ift.yml | 22 +++++++++++++++++++ .gitea/workflows/wipe-mnesia-stage.yml | 22 +++++++++++++++++++ 3 files changed, 44 insertions(+), 29 deletions(-) create mode 100644 .gitea/workflows/wipe-mnesia-ift.yml create mode 100644 .gitea/workflows/wipe-mnesia-stage.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0ccc441..1256aaf 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -21,8 +21,6 @@ on: - e2e-ift - deploy-stage - e2e-stage - - wipe-mnesia-ift - - wipe-mnesia-stage concurrency: group: eventhub-back-${{ github.ref }} @@ -474,30 +472,3 @@ jobs: REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} run: bash scripts/run-stand-api-tests.sh stage - - # Manual only: full Mnesia wipe (NOT prod). No deploy/e2e needs. - wipe-mnesia-ift: - if: github.event_name == 'workflow_dispatch' && github.event.inputs.pipeline == 'wipe-mnesia-ift' - runs-on: ubuntu-latest - timeout-minutes: 45 - steps: - - uses: actions/checkout@v4 - - name: Full Mnesia wipe IFT - env: - SSH_HOST: ${{ secrets.IFT_SSH_HOST }} - SSH_USER: ${{ secrets.IFT_SSH_USER }} - SSH_KEY: ${{ secrets.IFT_SSH_PRIVATE_KEY }} - run: bash scripts/ci-full-mnesia-wipe.sh ift - - wipe-mnesia-stage: - if: github.event_name == 'workflow_dispatch' && github.event.inputs.pipeline == 'wipe-mnesia-stage' - runs-on: ubuntu-latest - timeout-minutes: 45 - steps: - - uses: actions/checkout@v4 - - name: Full Mnesia wipe stage - env: - SSH_HOST: ${{ secrets.STAGE_SSH_HOST }} - SSH_USER: ${{ secrets.STAGE_SSH_USER }} - SSH_KEY: ${{ secrets.STAGE_SSH_PRIVATE_KEY }} - run: bash scripts/ci-full-mnesia-wipe.sh stage diff --git a/.gitea/workflows/wipe-mnesia-ift.yml b/.gitea/workflows/wipe-mnesia-ift.yml new file mode 100644 index 0000000..38f8bf3 --- /dev/null +++ b/.gitea/workflows/wipe-mnesia-ift.yml @@ -0,0 +1,22 @@ +name: Wipe Mnesia IFT + +# Manual only: full Mnesia wipe on IFT (NOT prod). +on: + workflow_dispatch: + +concurrency: + group: wipe-mnesia-ift + cancel-in-progress: false + +jobs: + wipe-mnesia-ift: + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - name: Full Mnesia wipe IFT + env: + SSH_HOST: ${{ secrets.IFT_SSH_HOST }} + SSH_USER: ${{ secrets.IFT_SSH_USER }} + SSH_KEY: ${{ secrets.IFT_SSH_PRIVATE_KEY }} + run: bash scripts/ci-full-mnesia-wipe.sh ift diff --git a/.gitea/workflows/wipe-mnesia-stage.yml b/.gitea/workflows/wipe-mnesia-stage.yml new file mode 100644 index 0000000..ecd6e3f --- /dev/null +++ b/.gitea/workflows/wipe-mnesia-stage.yml @@ -0,0 +1,22 @@ +name: Wipe Mnesia stage + +# Manual only: full Mnesia wipe on stage (NOT prod). +on: + workflow_dispatch: + +concurrency: + group: wipe-mnesia-stage + cancel-in-progress: false + +jobs: + wipe-mnesia-stage: + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + - name: Full Mnesia wipe stage + env: + SSH_HOST: ${{ secrets.STAGE_SSH_HOST }} + SSH_USER: ${{ secrets.STAGE_SSH_USER }} + SSH_KEY: ${{ secrets.STAGE_SSH_PRIVATE_KEY }} + run: bash scripts/ci-full-mnesia-wipe.sh stage