Skip to content

update github workflow to deploy api server #1

update github workflow to deploy api server

update github workflow to deploy api server #1

Workflow file for this run

name: Deploy to EC2
on:
push:
branches: [ "master" ]
jobs:
deploy:
runs-on: ubuntu-latest # 실행될 인스턴스 OS와 버전
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /home/ec2-user/board-of-audit-and-inspection-system
git pull origin master
docker-compose up -d --build