Skip to content

Commit

Permalink
Deploy: 자동 배포 workflow (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
newbission authored Jun 11, 2024
1 parent 322e158 commit d0b1198
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy-dev-ncp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: deploy-dev-ncp
on:
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: SSH-Deploy
uses: appleboy/ssh-action@master
with:
host: ${{secrets.NCP_SSH_IP}}
port: ${{secrets.NCP_SSH_PORT}}
username: ${{secrets.NCP_SSH_ID}}
password: ${{secrets.NC_SSH_PASSWORD}}
script: |
whoami
cd /root/ndd
git pull origin develop
docker compose down
docker compose build
docker compose up -d

0 comments on commit d0b1198

Please sign in to comment.