The schema for templates on Runway, and a tool to check them.
A template describes ready-made software (a database, a cache, a search engine)
that Runway deploys to an app. Each template is one template.yaml in its own
repository in the runway-templates organization.
- Templates guide: how to deploy and use templates
v1alpha1.json: the JSON schema- Interpolation: the
${{ ... }}expressions
# yaml-language-server: $schema=https://raw.githubusercontent.com/runway-templates/schema/refs/heads/main/v1alpha1.json
apiVersion: schema.runway.horse/templates/v1alpha1
kind: Template
metadata:
name: valkey
version: 0.2.0
displayName: Valkey
description: In-memory key-value store.
category: cache
inputs:
image_tag:
type: string
default: "9.1.2-alpine"
services:
- name: valkey
image: "valkey/valkey:${{ inputs.image_tag }}"
env:
PORT: "6379"
VALKEY_PASSWORD:
value: "${{ runway.secret(32) }}"
volume:
mountPath: /data
outputs:
DSN: "redis://default:${{ env.VALKEY_PASSWORD }}@${{ runway.internal_address }}"
settings:
route: false
minPlan: free-launchThe first line gives you completion and checks in editors that support the YAML language server. See the valkey repository for a complete template.
The tool checks a template against the schema and the lint rules. Runway rejects templates that fail these checks.
go install github.com/runway-templates/schema/cmd/tool@latest
tool validate template.yaml # schema only
tool lint template.yaml # schema and lint rulesIn GitHub Actions:
steps:
- uses: actions/checkout@v7
- uses: runway-templates/schema/.github/actions/setup-tool@main
- run: tool lint template.yamlIssues for all templates, the schema and the tool are tracked in this repository.
Contributions to existing templates are very welcome: new versions, new inputs, better defaults, fixes and docs.
- Open an "Existing template" issue to report a problem or suggest a change.
- Open a pull request in the repository of the template.
Open a "New template" issue to request a template, or to offer to build one.
If you want to build it, we create a repository in this organization and give you access. A template repository contains:
template.yaml: the templateREADME.md: inputs, outputs and notes on how to connect.github/workflows/ci.yml: runstool lint
Open an issue or a pull request in this repository.
make test
make lint
make run-dev # lint the valid test templates