refactor: 메서드 분리 및 import 최적화와 final 추가 #3
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: Doodle Backend CD | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
server-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.AWS_IP }} | |
username: ubuntu | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
script: | | |
cd ~/DoodleDoodle-v2 | |
git pull | |
sudo docker-compose -f docker-compose.prod.yml down | |
sudo docker-compose -f docker-compose.prod.yml up --build -d |