Merge pull request #133 from OZ-Coding-School/hotfix-yjm #64
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-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}} | |
username: ${{secrets.NCP_SSH_ID}} | |
password: ${{secrets.NCP_SSH_PASSWORD}} | |
port: ${{secrets.NCP_SSH_PORT}} | |
script: | | |
whoami | |
cd ~/ndd | |
git pull origin develop | |
docker compose down | |
docker compose build | |
docker compose up -d |