n8n 업데이트
고급
이것은DevOps, IT Ops분야의자동화 워크플로우로, 27개의 노드를 포함합니다.주로 If, Set, Ssh, Merge, Telegram 등의 노드를 사용하며. Telegram 승인 시스템을 사용한 Docker 컨테이너 업데이트 자동화
사전 요구사항
- •Telegram Bot Token
- •대상 API의 인증 정보가 필요할 수 있음
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "PVBUCGQUOiOrIfli",
"meta": {
"instanceId": "740d0a59ff901341d9247a8b17beaace585edc6342f8d716c9cf18ea3ac6313a",
"templateCredsSetupCompleted": true
},
"name": "n8n update",
"tags": [
{
"id": "AW45ve4sa5vbdnkZ",
"name": "#n8n",
"createdAt": "2025-03-30T00:22:43.140Z",
"updatedAt": "2025-03-30T00:22:43.140Z"
}
],
"nodes": [
{
"id": "445aa127-ac55-4e01-ab07-90a45cf0fab1",
"name": "n8n 이미지 가져오기",
"type": "n8n-nodes-base.ssh",
"position": [
300,
-240
],
"parameters": {
"cwd": "={{ $('Set Default variable').item.json['working-directory'] }}",
"command": "sudo docker pull docker.n8n.io/n8nio/n8n"
},
"credentials": {
"sshPassword": {
"id": "tqNyOVbQTikb35Tk",
"name": "SSH Password account"
}
},
"typeVersion": 1
},
{
"id": "e437f006-cdee-4ab3-bfaa-f323b072c380",
"name": "docker compose pull",
"type": "n8n-nodes-base.ssh",
"position": [
560,
-240
],
"parameters": {
"cwd": "={{ $('Set Default variable').item.json['working-directory'] }}",
"command": "sudo docker compose pull"
},
"credentials": {
"sshPassword": {
"id": "tqNyOVbQTikb35Tk",
"name": "SSH Password account"
}
},
"typeVersion": 1
},
{
"id": "79e7a23e-1bd6-45c8-b9b0-ee959c11aa01",
"name": "n8n 설치 버전 확인",
"type": "n8n-nodes-base.ssh",
"position": [
-1100,
-660
],
"parameters": {
"cwd": "={{ $json['working-directory'] }}",
"command": "=sudo docker inspect \"{{ $json['n8n-container-name'] }}\" | jq -r '.[0].Config.Labels[\"org.opencontainers.image.version\"]'"
},
"credentials": {
"sshPassword": {
"id": "tqNyOVbQTikb35Tk",
"name": "SSH Password account"
}
},
"executeOnce": false,
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "a84ab5f7-da59-4d7a-aeac-ec1651115924",
"name": "워크플로우 '테스트' 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1800,
-200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9306fb33-0780-49db-bf22-13e264f0c2bf",
"name": "스케줄 트리거",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1800,
-460
],
"parameters": {
"rule": {
"interval": [
{
"daysInterval": 3,
"triggerAtHour": 13
}
]
}
},
"typeVersion": 1.2
},
{
"id": "a47fe6aa-f12b-4974-ac55-214b2fd76eff",
"name": "메모",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1540,
-660
],
"parameters": {
"height": 500,
"content": "## Default Variables \nBefore starting, please set the following variables: \n\n- **working-directory**: The directory where your `docker-compose.yml` file is located. \n- **n8n-container-name**: The name of your n8n Docker container. \n- **telegram-id**: Your Telegram chat ID. You can find it by messaging `@get_id_bot` on Telegram. \n"
},
"typeVersion": 1
},
{
"id": "bd9cba21-5ce6-4ce1-803b-ac77b9e58f45",
"name": "메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1300,
-240
],
"parameters": {
"height": 300,
"content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nGet information from the n8n GitHub repository to find the latest released version of n8n. \n"
},
"typeVersion": 1
},
{
"id": "4db11a08-3feb-4f91-9671-a675a2e7ae76",
"name": "메모2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1040,
-240
],
"parameters": {
"height": 300,
"content": "\n\n\n\n\n\n\n\n\n\n\n\nThis node removes \"n8n@\" from the version string. \nFor example: \n- Before: `n8n@1.84.3` \n- After: `1.84.3` \n\n"
},
"typeVersion": 1
},
{
"id": "d479524f-143e-4894-909d-e9970590e0e2",
"name": "메모3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1160,
-880
],
"parameters": {
"height": 400,
"content": "## Check Installed Image Version \nExecute a command on the server to determine which version of n8n is currently running. \n"
},
"typeVersion": 1
},
{
"id": "f896acec-2dc5-477b-88f2-9b8e36550006",
"name": "메모4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-820,
-880
],
"parameters": {
"width": 420,
"height": 520,
"content": "## SQL Query: Merging Inputs \nThis query retrieves the `stdout` field from `input1` and `tag_name` from `input2`. \nIt uses a `LEFT JOIN` to merge the data based on matching `id` fields. \n\nQuery: \n```sql\nSELECT input1.stdout AS stdout, \ninput2.tag_name AS tag_name\nFROM input1\nLEFT JOIN input2 ON input1.id = input2.id;\n"
},
"typeVersion": 1
},
{
"id": "7913800b-b46f-40e2-851d-cc3cc2104843",
"name": "메모5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-60,
-1080
],
"parameters": {
"height": 380,
"content": "## Telegram Notificaton [OPTIONAL]\nSend a Telegram message and inform that there is nothing to do and n8n is already on the latest version.\n\n\n\n\n\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "63ef2c3f-d0d2-438e-9427-90592397df22",
"name": "메모6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-380,
-680
],
"parameters": {
"height": 340,
"content": "## Compare Versions \nThis node compares two versions: one from Docker and another from the n8n GitHub repository. \nIf a new version is available, it will be detected. \n\n\n"
},
"typeVersion": 1
},
{
"id": "77ebd46f-09af-4e68-a1a7-a6d97c3f9021",
"name": "메모7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
-420
],
"parameters": {
"height": 340,
"content": "## Telegram Approve\nSend a Telegram notification and inform that a new version is available. Ask if the user wants to update.\n\n\n\n\n\n\n\n\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "7365971c-1e77-4eae-a23f-9f7843b40889",
"name": "메모8",
"type": "n8n-nodes-base.stickyNote",
"position": [
220,
-420
],
"parameters": {
"height": 340,
"content": "## Pull Docker Image\nPull the latest n8n image. You can modify the command as needed.\n\n\n\n\n\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "1e7b547c-e9b1-4b91-8241-6cdd6a746100",
"name": "메모9",
"type": "n8n-nodes-base.stickyNote",
"position": [
500,
-420
],
"parameters": {
"height": 340,
"content": "## Docker Compose Pull\nRuns in the directory you defined in the Default variable.\n\n\n\n\n\n\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "f2817779-b2e9-4205-baf7-1f0481bae0e4",
"name": "메모10",
"type": "n8n-nodes-base.stickyNote",
"position": [
780,
-420
],
"parameters": {
"height": 340,
"content": "## Docker Compose Up \nIn this step, the container will be started with the new image.\n\n\n\n\n\n\n\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "4823d32f-9237-444f-812f-1bc494d0e087",
"name": "메모11",
"type": "n8n-nodes-base.stickyNote",
"position": [
1060,
-420
],
"parameters": {
"height": 340,
"content": "## Telegram Notificaton\nSend a Telegram notification and inform that n8n has been updated.\n\n\n\n\n\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "8bcf0308-7904-4635-8f0e-7335e360dabc",
"name": "docker compose up",
"type": "n8n-nodes-base.ssh",
"position": [
840,
-240
],
"parameters": {
"cwd": "={{ $('Set Default variable').item.json['working-directory'] }}",
"command": "sudo docker compose up -d"
},
"credentials": {
"sshPassword": {
"id": "tqNyOVbQTikb35Tk",
"name": "SSH Password account"
}
},
"typeVersion": 1
},
{
"id": "add506c6-88b7-480c-be13-2de86f6094ca",
"name": "메모12",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1840,
-660
],
"parameters": {
"height": 340,
"content": "## Schedule Trigger \nYou can schedule this workflow, for example, every three days to check n8n images.\n\n\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "045ebd0a-9d54-4cae-8307-f23ed26103f9",
"name": "기본 변수 설정",
"type": "n8n-nodes-base.set",
"position": [
-1480,
-320
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "c06b2d24-1fd7-40f0-aee5-b5d6553e289e",
"name": "working-directory",
"type": "string",
"value": ""
},
{
"id": "451aad67-5190-4eab-a982-56092734bb07",
"name": "n8n-container-name",
"type": "string",
"value": ""
},
{
"id": "8a294900-f367-47a2-b260-344b133dc2ff",
"name": "telegram-id",
"type": "string",
"value": "598677820"
}
]
}
},
"typeVersion": 3.4,
"alwaysOutputData": true
},
{
"id": "6bc2b28c-0f3c-44aa-a536-766f972f9e22",
"name": "Github HTTP 요청",
"type": "n8n-nodes-base.httpRequest",
"position": [
-1240,
-220
],
"parameters": {
"url": "https://api.github.com/repos/n8n-io/n8n/releases/latest",
"options": {}
},
"typeVersion": 4.2,
"alwaysOutputData": false
},
{
"id": "8ba3f574-9f2b-48d2-95fc-b57d57ecf6c1",
"name": "결과 병합",
"type": "n8n-nodes-base.merge",
"position": [
-660,
-560
],
"parameters": {
"mode": "combineBySql",
"query": "SELECT input1.stdout, input2.tag_name \nFROM input1 \nLEFT JOIN input2 ON true;"
},
"typeVersion": 3.1
},
{
"id": "c97723c3-1733-4481-add2-7ecae02ea144",
"name": "버전 문자열 편집",
"type": "n8n-nodes-base.set",
"position": [
-960,
-220
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f6e5cc51-aa49-46e5-aa4c-73baec811afa",
"name": "tag_name",
"type": "string",
"value": "={{ $json[\"tag_name\"].replace(\"n8n@\", \"\") }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "22bec435-84ba-44bb-8127-c5b099fda7f2",
"name": "두 입력 비교",
"type": "n8n-nodes-base.if",
"position": [
-320,
-500
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "e88d2c77-5ee1-4296-a612-d9b2290f6e03",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.stdout }}",
"rightValue": "={{ $json.tag_name }}"
}
]
},
"looseTypeValidation": "="
},
"typeVersion": 2.2
},
{
"id": "be9bdef5-88f4-4f12-8938-82f8206b8655",
"name": "Telegram 알림",
"type": "n8n-nodes-base.telegram",
"position": [
0,
-860
],
"webhookId": "38d19f3d-0ef4-40df-b831-701ea242bb8f",
"parameters": {
"text": "n8n is up to date.",
"chatId": "={{ $('Set Default variable').item.json['telegram-id'] }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "Zx3ibmlSzRKZQsFa",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "59ece477-dcf2-4898-a362-7fcd35a49315",
"name": "Telegram 승인",
"type": "n8n-nodes-base.telegram",
"position": [
20,
-240
],
"webhookId": "e816696f-cb7a-4036-92bf-eafb5f06778c",
"parameters": {
"chatId": "={{ $('Set Default variable').item.json['telegram-id'] }}",
"message": "Hi, \na new n8n version is available. \nI'm ready to update. \nCan I start now?",
"options": {},
"operation": "sendAndWait"
},
"credentials": {
"telegramApi": {
"id": "Zx3ibmlSzRKZQsFa",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "292efcfd-bbd7-4170-9e9f-020f10483c5e",
"name": "Telegram 알림1",
"type": "n8n-nodes-base.telegram",
"position": [
1120,
-240
],
"webhookId": "254019a6-a298-4a9e-b100-8b92f22469c3",
"parameters": {
"text": "We are updating n8n to the latest version.",
"chatId": "={{ $('Set Default variable').item.json['telegram-id'] }}",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "Zx3ibmlSzRKZQsFa",
"name": "Telegram account"
}
},
"typeVersion": 1.2
}
],
"active": true,
"pinData": {},
"settings": {
"timezone": "Asia/Tehran",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1",
"saveExecutionProgress": false
},
"versionId": "e7c52f1d-e131-4911-bf04-5d3ebefc8271",
"connections": {
"8ba3f574-9f2b-48d2-95fc-b57d57ecf6c1": {
"main": [
[
{
"node": "22bec435-84ba-44bb-8127-c5b099fda7f2",
"type": "main",
"index": 0
}
]
]
},
"445aa127-ac55-4e01-ab07-90a45cf0fab1": {
"main": [
[
{
"node": "e437f006-cdee-4ab3-bfaa-f323b072c380",
"type": "main",
"index": 0
}
]
]
},
"292efcfd-bbd7-4170-9e9f-020f10483c5e": {
"main": [
[
{
"node": "22bec435-84ba-44bb-8127-c5b099fda7f2",
"type": "main",
"index": 0
}
]
]
},
"9306fb33-0780-49db-bf22-13e264f0c2bf": {
"main": [
[
{
"node": "045ebd0a-9d54-4cae-8307-f23ed26103f9",
"type": "main",
"index": 0
}
]
]
},
"59ece477-dcf2-4898-a362-7fcd35a49315": {
"main": [
[
{
"node": "445aa127-ac55-4e01-ab07-90a45cf0fab1",
"type": "main",
"index": 0
}
]
]
},
"22bec435-84ba-44bb-8127-c5b099fda7f2": {
"main": [
[
{
"node": "be9bdef5-88f4-4f12-8938-82f8206b8655",
"type": "main",
"index": 0
}
],
[
{
"node": "59ece477-dcf2-4898-a362-7fcd35a49315",
"type": "main",
"index": 0
}
]
]
},
"8bcf0308-7904-4635-8f0e-7335e360dabc": {
"main": [
[
{
"node": "292efcfd-bbd7-4170-9e9f-020f10483c5e",
"type": "main",
"index": 0
}
]
]
},
"c97723c3-1733-4481-add2-7ecae02ea144": {
"main": [
[
{
"node": "8ba3f574-9f2b-48d2-95fc-b57d57ecf6c1",
"type": "main",
"index": 1
}
]
]
},
"6bc2b28c-0f3c-44aa-a536-766f972f9e22": {
"main": [
[
{
"node": "c97723c3-1733-4481-add2-7ecae02ea144",
"type": "main",
"index": 0
}
]
]
},
"e437f006-cdee-4ab3-bfaa-f323b072c380": {
"main": [
[
{
"node": "8bcf0308-7904-4635-8f0e-7335e360dabc",
"type": "main",
"index": 0
}
]
]
},
"045ebd0a-9d54-4cae-8307-f23ed26103f9": {
"main": [
[
{
"node": "79e7a23e-1bd6-45c8-b9b0-ee959c11aa01",
"type": "main",
"index": 0
},
{
"node": "6bc2b28c-0f3c-44aa-a536-766f972f9e22",
"type": "main",
"index": 0
}
]
]
},
"79e7a23e-1bd6-45c8-b9b0-ee959c11aa01": {
"main": [
[
{
"node": "8ba3f574-9f2b-48d2-95fc-b57d57ecf6c1",
"type": "main",
"index": 0
}
]
]
},
"a84ab5f7-da59-4d7a-aeac-ec1651115924": {
"main": [
[
{
"node": "045ebd0a-9d54-4cae-8307-f23ed26103f9",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 데브옵스, IT 운영
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
자동화된 n8n 워크플로우 백업至 GitHub 및 삭제 추적
삭제 추적이 포함된 GitHub 자동화 n8n 워크플로우 백업
If
N8n
Set
+
If
N8n
Set
31 노드Marcial Ambriz
데브옵스
셀프 호스팅 앱 자동 업데이트 (Coolify 배포)
Coolify 배포를 통한 자체 호스팅 애플리케이션 자동 업데이트
If
Set
Merge
+
If
Set
Merge
18 노드Edoardo Guzzi
데브옵스
Typebot 플로우와 GitHub 양방향 동기화, Typebot API 사용
Typebot API를 활용한 Typebot 플로우와 GitHub 양방향 동기화
If
Set
Code
+
If
Set
Code
31 노드Marcial Ambriz
데브옵스
매일 Contabo VPS 인스턴스 스냅샷 생성
매일 Contabo VPS 인스턴스 스냅샷을 만들기
If
Set
Merge
+
If
Set
Merge
29 노드DUBCOM
IT 운영
Supabase 스토리지 내 파일과 대화하는 AI 에이전트
与Supabase存储中文件对话의AI스마트体
If
Merge
Switch
+
If
Merge
Switch
33 노드Mark Shcherbakov
엔지니어링
Notion 및 Telegram 기반 자동화 SSL 인증서 모니터링 및 갱신
Notion 및 Telegram을 사용한 SSL 인증서 자동 모니터링 및 갱신
If
Set
Ssh
+
If
Set
Ssh
21 노드Frank Chen
보안 운영
워크플로우 정보
난이도
고급
노드 수27
카테고리2
노드 유형9
저자
Jaber Zare
@j4b3rI'm Jaber Zare, a freelance DevOps engineer specializing in cloud infrastructure, automation, and scalable systems. With expertise in Kubernetes, CI/CD, and cloud platforms, I help businesses optimize their workflows and improve system reliability. If you're looking for top-notch DevOps/Cloud solutions, let's connect!
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유