Skip to content

Merge pull request #2230 from aswanthabam/perf-register #259

Merge pull request #2230 from aswanthabam/perf-register

Merge pull request #2230 from aswanthabam/perf-register #259

Workflow file for this run

name: Prod CI
on:
push:
branches: [ "production" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure SSH key
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.PROD_SSH_PRIVATE_KEY }}
- name: Deploy
env:
REMOTE_IP: ${{ secrets.PROD_REMOTE_IP }}
PROJECT_PATH: ${{ secrets.PROJECT_PATH }}
run: |
ssh -o StrictHostKeyChecking=no ubuntu@$REMOTE_IP "cd $PROJECT_PATH && git pull && docker-compose up --build -d"