Skip to content

Commit

Permalink
feat: add and automate version schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored and aeneasr committed Aug 24, 2020
1 parent ff8d593 commit b01eef8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
orbs:
sdk: ory/[email protected]
changelog: ory/[email protected]
goreleaser: ory/[email protected].13
goreleaser: ory/[email protected].17
slack: circleci/[email protected]
nancy: ory/[email protected]
docs: ory/[email protected]
Expand Down Expand Up @@ -123,6 +123,12 @@ workflows:
ignore: /.*/
tags:
only: /.*/
- goreleaser/render-version-schema:
requires:
- goreleaser/release
filters:
tags:
only: /.*/
-
goreleaser/newsletter-draft:
chimp-list: f605a41b53
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ changelog:

brews:
-
github:
tap:
owner: ory
name: homebrew-keto
homepage: https://www.ory.sh
Expand Down
6 changes: 6 additions & 0 deletions .schema/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@
}
}
}
},
"version": {
"type": "string",
"title": "The Keto 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-]+)*))?$"
}
}
}
7 changes: 7 additions & 0 deletions .schema/version.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$id": "https://github.com/ory/keto/.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 Keto Configuration",
"type": "object",
"oneOf": []
}

0 comments on commit b01eef8

Please sign in to comment.