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.
This commit is contained in:
@@ -21,8 +21,6 @@ on:
|
|||||||
- e2e-ift
|
- e2e-ift
|
||||||
- deploy-stage
|
- deploy-stage
|
||||||
- e2e-stage
|
- e2e-stage
|
||||||
- wipe-mnesia-ift
|
|
||||||
- wipe-mnesia-stage
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: eventhub-back-${{ github.ref }}
|
group: eventhub-back-${{ github.ref }}
|
||||||
@@ -474,30 +472,3 @@ jobs:
|
|||||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
run: bash scripts/run-stand-api-tests.sh stage
|
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
|
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user