fix: SSH agent cleanup 경고 해결 및 문서 개선

- SSH setup에 id 추가하여 참조 가능하게 설정
- 조건부 SSH agent cleanup 추가로 경고 제거
- README.md 파일 구조 설명 개선

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
happybell80 2025-07-09 19:34:19 +09:00
parent 6ba7e1bf0f
commit 45efd03a93
2 changed files with 10 additions and 3 deletions

View File

@ -13,6 +13,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup SSH key - name: Setup SSH key
id: ssh-setup
uses: webfactory/ssh-agent@v0.9.0 uses: webfactory/ssh-agent@v0.9.0
with: with:
ssh-private-key: ${{ secrets.NAS_SSH_KEY_ADMIN }} ssh-private-key: ${{ secrets.NAS_SSH_KEY_ADMIN }}
@ -39,3 +40,8 @@ jobs:
sudo -n /bin/systemctl reload nginx sudo -n /bin/systemctl reload nginx
docker compose down || true docker compose down || true
EOF EOF
- name: Cleanup SSH agent
if: always() && steps.ssh-setup.outcome == 'success'
run: |
ssh-agent -k || true

View File

@ -7,8 +7,9 @@ Ubuntu 서버용 Nginx 리버스 프록시 배포 저장소입니다.
``` ```
nginx-deploy/ nginx-deploy/
├── .github/workflows/deploy.yml # GitHub Actions 배포 스크립트 ├── .github/workflows/deploy.yml # GitHub Actions 배포 스크립트
├── default.conf # Nginx 설정 파일 ├── default.conf # Docker nginx 설정 (legacy)
├── docker-compose.yml # Docker Compose 정의 ├── server-nginx-default # 서버 nginx 설정 파일
├── docker-compose.yml # Docker Compose 정의 (cleanup용)
└── README.md # 이 파일 └── README.md # 이 파일
``` ```