fix : ci 수정 #16
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 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: 디버깅 - source 파일 실제 존재 여부 확인 | |
| run: | | |
| echo "[INFO] 현재 경로: $(pwd)" | |
| echo "[INFO] docker-compose.*.yml 파일 확인" | |
| ls -l docker-compose.*.yml || echo "❌ 파일 없음" | |
| echo "[INFO] traefik 디렉토리 내 파일" | |
| ls -l 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 |