Skip to content

try to resolve app error but fail #9

try to resolve app error but fail

try to resolve app error but fail #9

Workflow file for this run

name: dev branch auto ci process script
on: # 아래 job을 실행시킬 상황
push:
branches: [dev]
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_DEV }} # 인스턴스 IP
username: ${{ secrets.REMOTE_USER_DEV }} # 우분투 아이디
key: ${{ secrets.REMOTE_PRIVATE_KEY_DEV }} # ec2 instance pem key
port: ${{ secrets.REMOTE_SSH_PORT_DEV }} # 접속포트
passphrase: ${{ secrets.REMOTE_PASSPHRASE_DEV }}
script: | # 실행할 스크립트
cd otlplus-nest-server
git pull origin dev
sudo docker stop otlplus-server-nest-dev
sudo docker rm otlplus-server-nest-dev
sudo docker rmi otlplus-server-nest-dev
sudo ./deploy.sh -e dev