Skip to content

Commit

Permalink
ci: release automation fixes (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored Oct 1, 2021
1 parent 8bae3e7 commit d08ef66
Show file tree
Hide file tree
Showing 6 changed files with 2,026 additions and 50 deletions.
385 changes: 383 additions & 2 deletions .bin/go.mod

Large diffs are not rendered by default.

1,676 changes: 1,631 additions & 45 deletions .bin/go.sum

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .bin/indirect_pins.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ import (
_ "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"

_ "github.com/goreleaser/godownloader"

_ "github.com/ory/cli"
)
3 changes: 3 additions & 0 deletions .orycli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ project: keto

pre_release_hooks:
- ./scripts/render-schemas.sh

ignore_tags:
- proto/.*
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ GO_DEPENDENCIES = github.com/go-swagger/go-swagger/cmd/swagger \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc \
github.com/goreleaser/godownloader \
github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc \
github.com/ory/cli

define make-go-dependency
# go install is responsible for not re-building when the code hasn't changed
Expand Down
7 changes: 5 additions & 2 deletions scripts/render-schemas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ sed "s!ory://tracing-config!https://raw.githubusercontent.com/ory/x/$ory_x_versi
s!ory://logging-config!https://raw.githubusercontent.com/ory/x/$ory_x_version/logrusx/config.schema.json!g" internal/driver/config/config.schema.json > .schema/config.schema.json

git add .schema/config.schema.json
git commit -m "autogen: render config schema"

git push
if ! git diff --exit-code .schema/config.schema.json
then
git commit -m "autogen: render config schema"
git push
fi

0 comments on commit d08ef66

Please sign in to comment.