Skip to content

Commit

Permalink
added action for server
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZhemanov committed Apr 30, 2024
1 parent b30cef8 commit 1ebff4b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to Server

on:
push:
branches:
# - master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Docker Deploy
run: |
ssh -o "StrictHostKeyChecking=no" [email protected] "cd spark-matcher && git pull && docker run --restart=always -d spot-market-matcher-fuel-btc"

0 comments on commit 1ebff4b

Please sign in to comment.