Skip to content

Commit

Permalink
build: Add restart Testnet solver and job creator actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed May 31, 2024
1 parent aa11c48 commit 76d8b97
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/testnet_restart_job_creator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Restart Testnet job creator

# on: workflow_dispatch
on:
push:
branches:
- bgins/build-deploy-testnet

jobs:
job-creator-restart:
runs-on: ubuntu-latest
steps:
- name: Restart job-creator container
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.TESTNET_EC2_HOST_JOB_CREATOR }}
username: ${{ secrets.TESTNET_EC2_USERNAME_JOB_CREATOR }}
key: ${{ secrets.TESTNET_EC2_PRIVATE_KEY_JOB_CREATOR }}
script_stop: true
script: |
docker restart job-creator || true
21 changes: 21 additions & 0 deletions .github/workflows/testnet_restart_solver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Restart Testnet solver

# on: workflow_dispatch
on:
push:
branches:
- bgins/build-deploy-testnet

jobs:
solver-restart:
runs-on: ubuntu-latest
steps:
- name: Restart solver container
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.TESTNET_EC2_HOST_SOLVER }}
username: ${{ secrets.TESTNET_EC2_USERNAME_SOLVER }}
key: ${{ secrets.TESTNET_EC2_PRIVATE_KEY_SOLVER }}
script_stop: true
script: |
docker restart solver || true

0 comments on commit 76d8b97

Please sign in to comment.