Skip to content

Commit

Permalink
Create mongo-reset.yaml for manual triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
klhftco authored Nov 22, 2024
1 parent 2472fc7 commit 7e59fbc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/mongo-reset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Reset Dev Mongo

on:
workflow_dispatch:

jobs:
reset-mongo:
name: SSH and Reset Dev MongoDB State
runs-on: ubuntu-latest
steps:
- name: SSH and Reset MongoDB
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
set -e # Exit immediately if a command fails
# Create Mongo job from mongo-reset
kubectl create job --from=cronjob/mongo-reset mongo-reset-manual
echo "MongoDB reset scheduled."

0 comments on commit 7e59fbc

Please sign in to comment.