Refactor kafka to pure Go (franz-go), fix DBC stubs, update Dockerfile
This commit is contained in:
19
pkg/can-go/tools/semantic-release/.releaserc.yaml
Normal file
19
pkg/can-go/tools/semantic-release/.releaserc.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
plugins:
|
||||
- - "@semantic-release/commit-analyzer"
|
||||
- preset: "conventionalcommits"
|
||||
releaseRules:
|
||||
# Given Go v2+ conventions we disable major releases on
|
||||
# breaking changes and leave it up to the developer
|
||||
# to make major releases
|
||||
- breaking: true
|
||||
release: "minor"
|
||||
- "@semantic-release/release-notes-generator"
|
||||
- "@semantic-release/github"
|
||||
|
||||
branches: ["master"]
|
||||
# github plugin is the only one running this step and we're not interested
|
||||
# in its updates to PR and issues
|
||||
success: false
|
||||
# github plugin is the only one running this step and we're not interested
|
||||
# the issues it creates due to failed releases
|
||||
fail: false
|
||||
8
pkg/can-go/tools/semantic-release/package.json
Normal file
8
pkg/can-go/tools/semantic-release/package.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"semantic-release": "^17.3.0",
|
||||
"@semantic-release/github": "^7.2.0",
|
||||
"@semantic-release/release-notes-generator": "^9.0.1",
|
||||
"conventional-changelog-conventionalcommits": "^4.5.0"
|
||||
}
|
||||
}
|
||||
12
pkg/can-go/tools/semantic-release/rules.mk
Normal file
12
pkg/can-go/tools/semantic-release/rules.mk
Normal file
@@ -0,0 +1,12 @@
|
||||
semantic_release_cwd := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
|
||||
semantic_release := $(semantic_release_cwd)/node_modules/.bin/semantic-release
|
||||
|
||||
$(semantic_release): $(semantic_release_cwd)/package.json
|
||||
$(info [semantic-release] installing packages...)
|
||||
@cd $(semantic_release_cwd) && npm install --no-save --no-audit --ignore-scripts &> /dev/null
|
||||
@touch $@
|
||||
|
||||
.PHONY: semantic-release
|
||||
semantic-release: $(semantic_release_cwd)/.releaserc.yaml $(semantic_release)
|
||||
$(info [$@] creating release...)
|
||||
@cd $(semantic_release_cwd) && $(semantic_release)
|
||||
Reference in New Issue
Block a user