Skip to content

Deploy to EC2

Deploy to EC2 #26

Workflow file for this run

name: Deploy to EC2
on:
workflow_run:
workflows: [Automatic Testing]
types:
- completed
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