Skip to content

Commit

Permalink
ci: distinguish Keto and proto/ releases (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored Sep 15, 2021
1 parent 408a34a commit fceb7c2
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ workflows:
- validate
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
branches:
only: master
- docs/cli
Expand All @@ -132,7 +134,9 @@ workflows:
swag-spec-ignore: internal/httpclient proto/ory/keto docker
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
branches:
only: master
-
Expand All @@ -154,7 +158,9 @@ workflows:
- goreleaser/release
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
branches:
ignore: /.*/
- goreleaser/release:
Expand All @@ -166,41 +172,53 @@ workflows:
branches:
ignore: /.*/
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
- goreleaser/render-version-schema:
requires:
- goreleaser/release
schema-path: internal/driver/config/config.schema.json
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
- goreleaser/newsletter-draft:
chimp-list: f605a41b53
chimp-segment: 6479489
requires:
- goreleaser/release
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
- slack/approval-notification:
message: Pending approval
channel: release-automation
requires:
- goreleaser/newsletter-draft
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
- newsletter-approval:
type: approval
requires:
- goreleaser/newsletter-draft
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/
- goreleaser/newsletter-send:
chimp-list: f605a41b53
requires:
- newsletter-approval
filters:
tags:
only: /.*/
# We have two types of tags: v0.0.0-foo.0 and proto/v0.0.0-foo.0
# This should only run for releases of Keto itself
only: /v.*/

0 comments on commit fceb7c2

Please sign in to comment.