From 45efd03a936bbb2cc4444fc46919f356eba20c3f Mon Sep 17 00:00:00 2001 From: happybell80 Date: Wed, 9 Jul 2025 19:34:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SSH=20agent=20cleanup=20=EA=B2=BD?= =?UTF-8?q?=EA=B3=A0=20=ED=95=B4=EA=B2=B0=20=EB=B0=8F=20=EB=AC=B8=EC=84=9C?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SSH setup에 id 추가하여 참조 가능하게 설정 - 조건부 SSH agent cleanup 추가로 경고 제거 - README.md 파일 구조 설명 개선 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/deploy.yml | 8 +++++++- README.md | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f04a63d..60c9ba4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }} @@ -38,4 +39,9 @@ jobs: sudo -n /usr/sbin/nginx -t sudo -n /bin/systemctl reload nginx docker compose down || true - EOF \ No newline at end of file + EOF + + - name: Cleanup SSH agent + if: always() && steps.ssh-setup.outcome == 'success' + run: | + ssh-agent -k || true \ No newline at end of file diff --git a/README.md b/README.md index fd98a85..643a8e3 100644 --- a/README.md +++ b/README.md @@ -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 # 이 파일 ```