Skip to content

workflow

workflow #13

Workflow file for this run

name: Deploy
on:
pull_request:
types:
- closed
jobs:
deploy:
if: github.event.pull_request.merged && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: executing remote ssh commands using ssh key
uses: appleboy/[email protected]
with:
host: ${{ secrets.ELASTIC_IP }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: cd /home/ubuntu/djangobackend && ./checks.sh