Fix: #102 산책 후 강아지 클릭시 산책기록 조회되도록 수정 #17
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: dev branch auto ci process script | |
on: # 아래 job을 실행시킬 상황 | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest # 실행될 인스턴스 OS와 버전 | |
steps: | |
- name: excuting remote ssh commands | |
uses: appleboy/ssh-action@v0.1.6 # ssh 접속하는 오픈소스 | |
with: | |
host: ${{ secrets.REMOTE_IP }} # 인스턴스 IP | |
username: ${{ secrets.REMOTE_USER }} # 우분투 아이디 | |
key: ${{ secrets.REMOTE_PRIVATE_KEY }} # ec2 instance pem key | |
port: ${{ secrets.REMOTE_PORT }} | |
script: | # 실행할 스크립트 | |
cd /home/ubuntu/Meong-Signal-FE | |
git pull origin main | |
npm i | |
npm run build | |
sudo service nginx restart |