n8n 자동 업데이트
중급
이것은DevOps분야의자동화 워크플로우로, 12개의 노드를 포함합니다.주로 If, Code, HttpRequest, ScheduleTrigger 등의 노드를 사용하며. 버전 확인 및 Portainer Webhook을 사용한 n8n 업데이트 자동화
사전 요구사항
- •대상 API의 인증 정보가 필요할 수 있음
사용된 노드 (12)
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "5TGOTlmPdfRCmmfe",
"meta": {
"instanceId": "dcb1c5ac6ea74a8d48a18ebc0df6103a2b23cb36997704a343a62b1831c8eccd"
},
"name": "n8n-autoupdate",
"tags": [],
"nodes": [
{
"id": "f1b6e1f4-1de3-4334-8a6a-72917d5612e3",
"name": "Portainer Webhook",
"type": "n8n-nodes-base.httpRequest",
"position": [
1184,
80
],
"parameters": {
"url": "https://portainer.tld.com/api/stacks/webhooks/606e8503-8824-43b1-a67c-cf95abbee1a8",
"method": "POST",
"options": {
"response": {
"response": {}
},
"allowUnauthorizedCerts": false
}
},
"typeVersion": 4.2
},
{
"id": "8cde31ed-6b9c-4451-8ce7-95b846d7e356",
"name": "스케줄 트리거",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-80,
80
],
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 16,
"triggerAtMinute": 8
}
]
}
},
"typeVersion": 1.2
},
{
"id": "8756bed1-42d0-4f5f-904c-2d5294002f74",
"name": "최신 n8n 버전 확인",
"type": "n8n-nodes-base.httpRequest",
"position": [
144,
80
],
"parameters": {
"url": "https://registry.npmjs.org/n8n/latest",
"options": {
"fullResponse": false
}
},
"typeVersion": 2
},
{
"id": "938334e9-c0b1-476e-a816-4269946d7a41",
"name": "If",
"type": "n8n-nodes-base.if",
"position": [
864,
80
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "a2d169a3-7aa2-46f5-bdb2-f0d53a011b5c",
"operator": {
"type": "string",
"operation": "notEquals"
},
"leftValue": "={{ $('Get the latest n8n version').item.json.version }}",
"rightValue": "={{ $json.versionCli }}"
}
]
}
},
"typeVersion": 2.2,
"alwaysOutputData": false
},
{
"id": "4802535d-c004-442a-bbd1-610d540e924d",
"name": "로컬 n8n 버전",
"type": "n8n-nodes-base.code",
"position": [
640,
80
],
"parameters": {
"jsCode": "const text = $input.first().json.data;\nconst match = text.match(/n8n_version_info\\{[^}]*version=\"(v[\\d.]+)\"/);\n\nif (match) {\n const version = match[1].replace(/^v/, ''); // v entfernen\n return [{ json: { versionCli: version } }];\n} else {\n throw new Error(\"Version info not found in metrics output\");\n}\n"
},
"typeVersion": 2
},
{
"id": "cee62d71-075b-4bf0-a800-b4fa2fee9ebe",
"name": "스티커 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
-112,
-16
],
"parameters": {
"width": 160,
"height": 272,
"content": "## Cron\nEvery 16 Hours at minute 8"
},
"typeVersion": 1
},
{
"id": "94d2e06e-daf3-4260-929c-584144fbe486",
"name": "스티커 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
80,
-16
],
"parameters": {
"width": 208,
"height": 272,
"content": "## Latest Version\nFetch from npmjs"
},
"typeVersion": 1
},
{
"id": "e1a8d5f8-d672-4475-9ea0-e2eda0028702",
"name": "스티커 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
320,
-16
],
"parameters": {
"width": 224,
"height": 272,
"content": "## Get Metrics\nFetch from local install"
},
"typeVersion": 1
},
{
"id": "47c26e66-ba89-4903-a948-22b1162bf1e5",
"name": "로컬 n8n 메트릭 확인",
"type": "n8n-nodes-base.httpRequest",
"position": [
368,
80
],
"parameters": {
"url": "https://127.0.0.1/metrics",
"options": {
"allowUnauthorizedCerts": true
}
},
"typeVersion": 4.2
},
{
"id": "4bf82532-cc70-4071-83f6-3550392b1590",
"name": "스티커 노트3",
"type": "n8n-nodes-base.stickyNote",
"position": [
576,
-16
],
"parameters": {
"width": 224,
"height": 272,
"content": "## Installed Version\nExtract from metrics"
},
"typeVersion": 1
},
{
"id": "b11bd405-761f-4328-af3e-0a79c985f654",
"name": "스티커 노트4",
"type": "n8n-nodes-base.stickyNote",
"position": [
832,
-16
],
"parameters": {
"width": 256,
"height": 272,
"content": "## If Update available\nProceed with the workflow"
},
"typeVersion": 1
},
{
"id": "559a1933-1bc6-4fc4-bcb2-2ef76364dc0e",
"name": "스티커 노트5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1120,
-16
],
"parameters": {
"width": 256,
"height": 272,
"content": "## Start Update\nUsing webhook, but SSH might be useful aswell"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "1f5d34fd-158e-44a5-8438-f235f4265d00",
"connections": {
"938334e9-c0b1-476e-a816-4269946d7a41": {
"main": [
[
{
"node": "f1b6e1f4-1de3-4334-8a6a-72917d5612e3",
"type": "main",
"index": 0
}
]
]
},
"8cde31ed-6b9c-4451-8ce7-95b846d7e356": {
"main": [
[
{
"node": "8756bed1-42d0-4f5f-904c-2d5294002f74",
"type": "main",
"index": 0
}
]
]
},
"4802535d-c004-442a-bbd1-610d540e924d": {
"main": [
[
{
"node": "938334e9-c0b1-476e-a816-4269946d7a41",
"type": "main",
"index": 0
}
]
]
},
"47c26e66-ba89-4903-a948-22b1162bf1e5": {
"main": [
[
{
"node": "4802535d-c004-442a-bbd1-610d540e924d",
"type": "main",
"index": 0
}
]
]
},
"8756bed1-42d0-4f5f-904c-2d5294002f74": {
"main": [
[
{
"node": "47c26e66-ba89-4903-a948-22b1162bf1e5",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 데브옵스
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
UniFi 컨트롤러: 새 릴리스 시 확인 및 업그레이드
SSH 및 Telegram 알림을 통한 UniFi 컨트롤러 업데이트 자동화
If
Ssh
Code
+
If
Ssh
Code
11 노드Dominic Spatz
데브옵스
자동화 API 가동 시간 모니터링 및 실시간 다운타임 알림
API 가동 시간 모니터링, WhatsApp 알림 및 Google 스프레드시트 관리 포함
If
Code
Wait
+
If
Code
Wait
17 노드Oneclick AI Squad
데브옵스
자동화된 웹사이트 가동 시간 모니터링 및 이메일 알림, GitHub 상태 페이지 업데이트
자동화 웹사이트 가동 시간 모니터링 및 이메일 알림, GitHub 상태 페이지 업데이트
If
Code
Gmail
+
If
Code
Gmail
19 노드Linearloop Team
데브옵스
자동화된 n8n 워크플로우 백업至 GitHub 및 삭제 추적
삭제 추적이 포함된 GitHub 자동화 n8n 워크플로우 백업
If
N8n
Set
+
If
N8n
Set
31 노드Marcial Ambriz
데브옵스
n8n 백업 관리자 v3
이메일/Telegram 알림 지원, GitHub 자동화 워크플로우 백업
If
Code
Gmail
+
If
Code
Gmail
21 노드Builds.Cool
데브옵스
Typebot 플로우와 GitHub 양방향 동기화, Typebot API 사용
Typebot API를 활용한 Typebot 플로우와 GitHub 양방향 동기화
If
Set
Code
+
If
Set
Code
31 노드Marcial Ambriz
데브옵스