-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add restart Testnet solver and job creator actions
- Loading branch information
Showing
2 changed files
with
42 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,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 |
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,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 |