Skip to content

Merge pull request #2246 from gtech-mulearn/dev #967

Merge pull request #2246 from gtech-mulearn/dev

Merge pull request #2246 from gtech-mulearn/dev #967

Workflow file for this run

name: Dev CI
on:
push:
branches: [ "dev-server" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}
- name: Deploy
env:
REMOTE_IP: ${{ secrets.DEV_REMOTE_IP }}
PROJECT_PATH: ${{ secrets.PROJECT_PATH }}
run: |
ssh -o StrictHostKeyChecking=no ubuntu@$REMOTE_IP "cd $PROJECT_PATH && git pull && docker-compose down && docker-compose up --build -d"