Skip to content

Merge pull request #32 from ARAFarm-Lab/f/baim/fix_cd #9

Merge pull request #32 from ARAFarm-Lab/f/baim/fix_cd

Merge pull request #32 from ARAFarm-Lab/f/baim/fix_cd #9

Workflow file for this run

name: Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checking out branch
uses: actions/checkout@v2
- name: Deploy to cloud server
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
user: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
command: |
sudo git clone https://github.com/ARAFarm-Lab/ara-server
cd ~/ara-server
sudo git pull origin main
sudo docker compose up -d migrate
sudo docker compose up --build -d app