fix : ci 수정 #10
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: CI - Upload Compose & Traefik Files | |
| on: | |
| push: | |
| branches: | |
| - main # 또는 원하는 브랜치로 설정 | |
| jobs: | |
| upload-files: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Check file list | |
| run: | | |
| echo "🔍 현재 디렉토리:" && pwd | |
| echo "📁 파일 목록:" && ls -al | |
| echo "📁 traefik 내부:" && ls -al traefik || echo "❌ traefik 폴더 없음" | |
| - name: Upload Traefik and Compose files to Server | |
| uses: appleboy/scp-action@v0.1.4 | |
| with: | |
| host: ${{ secrets.SERVER_HOST }} | |
| username: ${{ secrets.SERVER_USER }} | |
| key: ${{ secrets.SERVER_PEM_KEY }} | |
| source: | | |
| docker-compose.backend.yml | |
| docker-compose.portainer.yml | |
| docker-compose.traefik.yml | |
| traefik | |
| target: /home/ubuntu/app |