-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create mongo-reset.yaml for manual triggering
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |