Coolifyによるn8nの自動アップデート(最新版へ)

中級

これはDevOps分野の自動化ワークフローで、9個のノードを含みます。主にLimit, Filter, HttpRequest, ScheduleTrigger, RemoveDuplicatesなどのノードを使用。 Coolifyを使ってn8nを最新版へ自動更新

前提条件
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "nodes": [
    {
      "id": "35e69169-c5c2-49c8-beef-6ea6d0edc6bf",
      "name": "リリース取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        620,
        -120
      ],
      "parameters": {
        "url": "https://api.github.com/repos/n8n-io/n8n/releases/latest",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "10"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "00cfe0a8-d757-4980-a3d6-cf190c740a25",
      "name": "ENV更新",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1060,
        -220
      ],
      "parameters": {
        "url": "=https://console.buatan.id/api/v1/applications/{{ 'm8ccg8k44coogsk84swk8kgs' }}/envs",
        "method": "PATCH",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "key",
              "value": "N8N_VERSION"
            },
            {
              "name": "value",
              "value": "={{ $json.name.split('@').last() }}"
            },
            {
              "name": "is_preview",
              "value": "={{ false }}"
            },
            {
              "name": "is_build_time",
              "value": "={{ true }}"
            },
            {
              "name": "is_literal",
              "value": "={{ false }}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "WMYtkCgKxL6oblQO",
          "name": "Coolify - console.buatan.id"
        },
        "httpHeaderAuth": {
          "id": "Psy1vTIAINFnvPV1",
          "name": "Coolify - console.buatan.id"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "43ed4660-01ca-456f-b161-475a41f5cedc",
      "name": "デプロイ",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        -220
      ],
      "parameters": {
        "url": "=https://console.buatan.id/api/v1/deploy?uuid={{ 'm8ccg8k44coogsk84swk8kgs' }}&force=false",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "WMYtkCgKxL6oblQO",
          "name": "Coolify - console.buatan.id"
        },
        "httpHeaderAuth": {
          "id": "Psy1vTIAINFnvPV1",
          "name": "Coolify - console.buatan.id"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "4373ef71-d47f-435e-81c6-39bd19c82fab",
      "name": "フィルター",
      "type": "n8n-nodes-base.filter",
      "position": [
        400,
        -320
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "14dc4b16-6592-41ca-a252-a82aa3abcaa4",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.prerelease }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "5a737954-5eed-44fb-9ce9-d5036667b431",
      "name": "リミット",
      "type": "n8n-nodes-base.limit",
      "position": [
        620,
        -320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8605cae6-3be8-4e79-9ab7-f1adbfe0cbd4",
      "name": "重複排除",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        840,
        -220
      ],
      "parameters": {
        "options": {},
        "operation": "removeItemsSeenInPreviousExecutions",
        "dedupeValue": "={{ $json.name }}"
      },
      "typeVersion": 2
    },
    {
      "id": "9a244465-1b0a-423c-8345-695e1b79a371",
      "name": "リリース一覧取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        180,
        -320
      ],
      "parameters": {
        "url": "https://api.github.com/repos/n8n-io/n8n/releases",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "10"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "ee7f6381-80a2-40c9-adf5-6d9b12ccf4bc",
      "name": "最新リリース自動更新",
      "type": "n8n-nodes-base.scheduleTrigger",
      "disabled": true,
      "position": [
        400,
        -120
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "822e9e48-cbc2-40f0-b54f-91b873146a82",
      "name": "ベータリリース自動更新",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -40,
        -320
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 1.2
    }
  ],
  "connections": {
    "5a737954-5eed-44fb-9ce9-d5036667b431": {
      "main": [
        [
          {
            "node": "8605cae6-3be8-4e79-9ab7-f1adbfe0cbd4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "43ed4660-01ca-456f-b161-475a41f5cedc": {
      "main": [
        []
      ]
    },
    "4373ef71-d47f-435e-81c6-39bd19c82fab": {
      "main": [
        [
          {
            "node": "5a737954-5eed-44fb-9ce9-d5036667b431",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "00cfe0a8-d757-4980-a3d6-cf190c740a25": {
      "main": [
        [
          {
            "node": "43ed4660-01ca-456f-b161-475a41f5cedc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "35e69169-c5c2-49c8-beef-6ea6d0edc6bf": {
      "main": [
        [
          {
            "node": "8605cae6-3be8-4e79-9ab7-f1adbfe0cbd4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9a244465-1b0a-423c-8345-695e1b79a371": {
      "main": [
        [
          {
            "node": "4373ef71-d47f-435e-81c6-39bd19c82fab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8605cae6-3be8-4e79-9ab7-f1adbfe0cbd4": {
      "main": [
        [
          {
            "node": "00cfe0a8-d757-4980-a3d6-cf190c740a25",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "822e9e48-cbc2-40f0-b54f-91b873146a82": {
      "main": [
        [
          {
            "node": "9a244465-1b0a-423c-8345-695e1b79a371",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ee7f6381-80a2-40c9-adf5-6d9b12ccf4bc": {
      "main": [
        [
          {
            "node": "35e69169-c5c2-49c8-beef-6ea6d0edc6bf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - DevOps

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数9
カテゴリー1
ノードタイプ5
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34