Skip to content

Commit

Permalink
fix: 🐛 dev deploy github action 에서 branch 를 설정하지 않은 오류 수정
Browse files Browse the repository at this point in the history
그냥 새로 clone 받게 했습니다.
  • Loading branch information
jpham005 committed Oct 20, 2023
1 parent 47e0225 commit 8d7fd5f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
echo "move to repository"
cd $HOME/42Stat-Backend
echo "pull"
git pull origin dev
echo "env update"
git submodule update --remote
echo "run docker"
docker-compose -f docker-compose.dev.yml down -v
cd $HOME &&
echo "clone repository" &&
sudo rm -rf ./42Stat-Backend &&
git clone https://github.com/42Statistics/42Stat-Backend.git &&
cd 42Stat-Backend &&
git switch dev &&
echo "run docker" &&
docker-compose -f docker-compose.dev.yml down -v &&
docker-compose -f docker-compose.dev.yml up -d

0 comments on commit 8d7fd5f

Please sign in to comment.