Merge pull request #55 from ARAFarm-Lab/f/baim/revamp_init_state #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |