Skip to content

Commit

Permalink
Add view grafana metrics to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhuynh committed Jun 8, 2023
1 parent af545ad commit 5a3fa29
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deployment-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,24 @@ jobs:
${{ secrets.HEROKU_API_KEY }} \
${{ env.APP_ENV }} \
"https://www.mturk.com/mturk/preview?groupId";
view-metrics:
name: view-metrics
needs: run-container
runs-on: ubuntu-latest
steps:
- uses: appleboy/[email protected]
with:
# ssh host
host: ${{ env.HOST }}
# ssh port
port: ${{ env.PORT }}
# ssh username
username: ${{ env.USERNAME }}
# ssh password
key: ${{ secrets.PRIVATE_KEY }}
# execute commands
script: >
cd ${{ env.REPO_DIR }};
curl https://raw.githubusercontent.com/d-lab/mephisto/deployment/scripts/view-metrics.sh | bash -s -- \
${{ env.APP_NAME }};

0 comments on commit 5a3fa29

Please sign in to comment.