Skip to content

Commit

Permalink
๐Ÿž Fix(.github): ssh ๋กœ๊ทธ์ธ ์•ˆ๋˜๋Š” ๋ฒ„๊ทธ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #128
  • Loading branch information
SeoGeonhyuk committed Nov 21, 2024
1 parent 120c2f8 commit 09da465
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- development
types: [closed]
workflow_dispatch:

concurrency:
group: cloud-canvas
Expand Down Expand Up @@ -44,12 +45,16 @@ jobs:
cloud-canvas.kr.ncr.ntruss.com/back:${{ github.sha }}
CD:
needs: CI
runs-on: ubuntu-latest

steps:
- name: Add SSH known hosts
run: |
ssh-keyscan -p ${{ secrets.NCP_DEV_INSTANCE_PORT }} ${{ secrets.NCP_DEV_INSTANCE }} >> ~/.ssh/known_hosts
- name: SSH login and deploy
run: |
printf "%s" "${{ secrets.NCP_DEV_SSH }}" > dev_login.pem
chmod 600 dev_login.pem
ssh -i dev_login.pem ncloud@${{ secrets.NCP_DEV_INSTANCE }} -p ${{ secrets.NCP_DEV_INSTANCE_PORT }}
ssh -t -i dev_login.pem ncloud@${{ secrets.NCP_DEV_INSTANCE }} -p ${{ secrets.NCP_DEV_INSTANCE_PORT }}
./docker.sh

0 comments on commit 09da465

Please sign in to comment.