fix : 비로그인 시 localstorage에 있는 git url 들고오는 코드 이슈 수정, 문제풀이 페이지 토론 정렬 방… #106
This file contains hidden or 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: Frontend CD | |
| on: | |
| push: | |
| branches: [ "main", "dev" ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Deploy to EC2 via SSH | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.EC2_HOST }} | |
| username: ubuntu | |
| key: ${{ secrets.EC2_SSH_KEY }} | |
| script: | | |
| cd /home/ubuntu/frontend | |
| if ../deploy.sh; then | |
| echo "[INFO] Deploy succeeded. Running docker prune..." | |
| docker system prune -af | |
| else | |
| echo "[ERROR] Deploy failed. Skipping prune." | |
| exit 1 | |
| fi |