Skip to content

Commit

Permalink
fix: cd
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Jan 6, 2024
1 parent c1a75c1 commit 67fcbb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Digital Ocean
name: Build and Deploy to Digital Ocean

on:
push:
Expand All @@ -18,6 +18,6 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Connect and deploy project
- name: Build and deploy project
run: |
ssh -o "StrictHostKeyChecking=no" ${{ secrets.USER }}@${{ secrets.HOST }} "cd ~/bereal-wrapped && docker-compose up --build -d"
ssh -o "StrictHostKeyChecking=no" ${{ secrets.USER }}@${{ secrets.HOST }} "cd ~/bereal-wrapped && git reset --hard HEAD && git pull && docker-compose up --build -d"

0 comments on commit 67fcbb2

Please sign in to comment.