Skip to content

Merge pull request #2 from ranchimall/feature/cicd #21

Merge pull request #2 from ranchimall/feature/cicd

Merge pull request #2 from ranchimall/feature/cicd #21

Workflow file for this run

name: Pull changes and deploy API
on: [push]
jobs:
build:
name: Build
runs-on: self-hosted
steps:
- name: Executing remote command
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd ${{ secrets.APP_FOLDER }} && git pull
supervisorctl restart ${{ secrets.SUPERVISOR_SERVICE_NAME }}