Skip to content

pk web site backend deployment #7

pk web site backend deployment

pk web site backend deployment #7

Workflow file for this run

name: pk web site backend deployment
on:
workflow_run:
workflows: ["pk web site backend testing"]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }}
steps:
- name: executing remote ssh commands for update
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOSTNAME }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script:
cd python.or.kr && git pull
- name: executing remote ssh commands for deployment
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOSTNAME }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script:
cd python.or.kr && bash deploy_prod.sh