{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b63e9962-c268-44fc-bc5e-e5bb9adfb2c8",
    "slug": "railway-image-updater",
    "name": "railway-image-updater",
    "description": "Trigger multiple docker deployments for a new docker image tag.",
    "url": "https://railway.com/deploy/railway-image-updater",
    "upstream": {
      "image": "ghcr.io/returnearly/railway-image-updater:latest"
    }
  },
  "services": [
    {
      "name": "railway-image-updater",
      "source": {
        "image": "ghcr.io/returnearly/railway-image-updater:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "railway-image-updater",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "RAILWAY_API_TOKEN",
      "service": "railway-image-updater",
      "description": "Railway API Token to update services.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "railway-image-updater"
      }
    },
    "cli": "railway deploy --template railway-image-updater",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b63e9962-c268-44fc-bc5e-e5bb9adfb2c8",
            "serializedConfig": {
              "services": {
                "f75be06e-6600-41af-a183-6ca7d88fab22": {
                  "name": "railway-image-updater",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/returnearly/railway-image-updater:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "RAILWAY_API_TOKEN": {
                      "isOptional": false,
                      "description": "Railway API Token to update services.",
                      "defaultValue": "{{RAILWAY_API_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "railway-image-updater",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-14T01:43:45.454Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_cf637964c2ff48e58051",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 45,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "railway-image-updater"
  }
}
