[Docs] 한국관광공사 X 카카오 2024 관광데이터 활용 공모전 배너 간격 조정 및 수상 내용 bold 처리 #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to EC2 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up SSH agent | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.EC2_KEY }} | |
- name: Run deployment script on EC2 | |
env: | |
EC2_HOST: ${{ secrets.EC2_HOST }} | |
run: | | |
ssh -o StrictHostKeyChecking=no ec2-user@${EC2_HOST} 'cd ~/AlongTheBlue_SERVER && ./start.sh' |