Skip to content

Merge pull request #49 from ARAFarm-Lab/f/baim/setup_prometheus #26

Merge pull request #49 from ARAFarm-Lab/f/baim/setup_prometheus

Merge pull request #49 from ARAFarm-Lab/f/baim/setup_prometheus #26

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