Skip to content

Commit

Permalink
Create restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 authored Feb 23, 2024
1 parent 1eb1d19 commit be7ac87
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/restart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy

on:
workflow_dispatch:

jobs:

deploy:
runs-on: ubuntu-latest

steps:
- name: Install SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: End services
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }} "sudo systemctl stop replaybrowser.client.service"
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }} "sudo systemctl stop replaybrowser.server.service"

- name: Start services
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }} "sudo systemctl start replaybrowser.client.service"
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }} "sudo systemctl start replaybrowser.server.service"

0 comments on commit be7ac87

Please sign in to comment.