Skip to content

Commit

Permalink
feat: cd for server
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Jan 6, 2024
1 parent b3d50b0 commit bf6298e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
File renamed without changes.
23 changes: 23 additions & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy to Digital Ocean

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2

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

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

0 comments on commit bf6298e

Please sign in to comment.