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:
parent
6ba7e1bf0f
commit
45efd03a93
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@ -13,6 +13,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup SSH key
|
||||
id: ssh-setup
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.NAS_SSH_KEY_ADMIN }}
|
||||
@ -39,3 +40,8 @@ jobs:
|
||||
sudo -n /bin/systemctl reload nginx
|
||||
docker compose down || true
|
||||
EOF
|
||||
|
||||
- name: Cleanup SSH agent
|
||||
if: always() && steps.ssh-setup.outcome == 'success'
|
||||
run: |
|
||||
ssh-agent -k || true
|
||||
@ -7,8 +7,9 @@ Ubuntu 서버용 Nginx 리버스 프록시 배포 저장소입니다.
|
||||
```
|
||||
nginx-deploy/
|
||||
├── .github/workflows/deploy.yml # GitHub Actions 배포 스크립트
|
||||
├── default.conf # Nginx 설정 파일
|
||||
├── docker-compose.yml # Docker Compose 정의
|
||||
├── default.conf # Docker nginx 설정 (legacy)
|
||||
├── server-nginx-default # 서버 nginx 설정 파일
|
||||
├── docker-compose.yml # Docker Compose 정의 (cleanup용)
|
||||
└── README.md # 이 파일
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user