Point Publish Over SSH at the SEJONG-NAS host.
office.sejong.dev/pipeline/head There was a failure building this commit
office.sejong.dev/pipeline/head There was a failure building this commit
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f4f98704be
commit
34d5aa547f
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -6,7 +6,7 @@ pipeline {
|
||||
NODE_IMAGE = 'node:22-bookworm'
|
||||
REGISTRY = 'docker.sejong.dev'
|
||||
IMAGE = 'docker.sejong.dev/sejong-office'
|
||||
SSH_CONFIG_NAME = 'sejong-office'
|
||||
SSH_CONFIG_NAME = 'SEJONG-NAS'
|
||||
DEPLOY_DIR = '/volume1/docker/sejong-office'
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ Multibranch Pipeline(또는 Gitea/Git 브랜치 소스)로 이 레포를 연결
|
||||
|
||||
1. Jenkins에 **Publish Over SSH** 플러그인 설치
|
||||
2. **Manage Jenkins → System → Publish over SSH** 에 배포 서버 등록 (호스트, 사용자, 키 또는 비밀번호)
|
||||
3. 등록한 **Name**이 Jenkinsfile의 `SSH_CONFIG_NAME`과 같아야 함 (`sejong-office`)
|
||||
3. 등록한 **Name**이 Jenkinsfile의 `SSH_CONFIG_NAME`과 같아야 함 (`SEJONG-NAS`)
|
||||
4. 배포 명령은 SSH 접속 후 `sudo -n su -c '...'` 로 root에서 실행함. 대화형 `sudo su`와 비밀번호 입력은 CI에서 불가
|
||||
5. Publish Over SSH에 넣은 **그 계정**으로 서버에 로그인한 뒤, 한 번만 NOPASSWD를 설정:
|
||||
|
||||
|
||||
Reference in new issue
Block a user