diff --git a/.circleci/config.yml b/.circleci/config.yml index 8b4be901fc..5b4d528490 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,6 +90,13 @@ workflows: ignore: /.*/ tags: only: /.*/ + - + goreleaser/render-version-schema: + requires: + - goreleaser/release + filters: + tags: + only: /.*/ - goreleaser/newsletter-draft: chimp-list: f605a41b53 diff --git a/.schema/config.schema.json b/.schema/config.schema.json index c27ec6e250..ddc886ae45 100644 --- a/.schema/config.schema.json +++ b/.schema/config.schema.json @@ -1763,6 +1763,12 @@ "mem", "" ] + }, + "version": { + "type": "string", + "title": "The Oathkeeper version this config is written for.", + "description": "SemVer according to https://semver.org/ prefixed with `v` as in our releases.", + "pattern": "^v(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" } }, "required": [], diff --git a/.schema/version.schema.json b/.schema/version.schema.json new file mode 100644 index 0000000000..14f86cbd59 --- /dev/null +++ b/.schema/version.schema.json @@ -0,0 +1,7 @@ +{ + "$id": "https://github.com/ory/oathkeeper/.schema/versions.config.schema.json", + "$schema": "https://raw.githubusercontent.com/ory/cli/v0.0.21/.schema/version_meta.schema.json#", + "title": "All Versions of the ORY Oathkeeper Configuration", + "type": "object", + "oneOf": [] +}