Skip to content

Commit

Permalink
Merge pull request #45 from Giveth/add/optional-start-stop
Browse files Browse the repository at this point in the history
Adding optional start and stop of Devouch Backend
  • Loading branch information
mhmdksh authored May 7, 2024
2 parents c0b2cc9 + 57b3922 commit f699a48
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/start-devouch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: start-devouch

on:
workflow_dispatch:

jobs:

start:
name: Start Devouch
runs-on: ubuntu-latest
steps:
- name: Start Devouch
uses: appleboy/[email protected]
with:
host: ${{ secrets.STAGING_HOST }}
username: ${{ secrets.STAGING_USERNAME }}
key: ${{ secrets.STAGING_PRIVATE_KEY }}
port: 22
script: |
cd $HOME/DeVouch-BE
docker compose up -d
22 changes: 22 additions & 0 deletions .github/workflows/stop-devouch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: stop-devouch

on:
workflow_dispatch:

jobs:

stop:
name: Stop Devouch
runs-on: ubuntu-latest
steps:
- name: Stop Devouch
uses: appleboy/[email protected]
with:
host: ${{ secrets.STAGING_HOST }}
username: ${{ secrets.STAGING_USERNAME }}
key: ${{ secrets.STAGING_PRIVATE_KEY }}
port: 22
script: |
cd $HOME/DeVouch-BE
docker compose stop devouch squid-db
docker compose rm devouch squid-db

0 comments on commit f699a48

Please sign in to comment.