Merge core/ci repo into go-devops: - cmd/ci: release publish, init, changelog, version commands - cmd/sdk: API diff and OpenAPI validation commands Add reusable Forgejo Actions workflows: - security-scan.yml: govulncheck + gitleaks + trivy - go-test.yml: test with optional race/coverage - docker-publish.yml: build + push to registry Other repos can call these via: uses: core/go-devops/.forgejo/workflows/security-scan.yml@main Co-Authored-By: Virgil <virgil@lethean.io>
23 lines
581 B
Go
23 lines
581 B
Go
// Package ci provides release lifecycle commands for CI/CD pipelines.
|
|
//
|
|
// Commands:
|
|
// - ci init: scaffold release config
|
|
// - ci changelog: generate changelog from git history
|
|
// - ci version: show determined version
|
|
// - ci publish: publish pre-built artifacts (dry-run by default)
|
|
//
|
|
// Configuration via .core/release.yaml.
|
|
package ci
|
|
|
|
import (
|
|
"forge.lthn.ai/core/go/pkg/cli"
|
|
)
|
|
|
|
func init() {
|
|
cli.RegisterCommands(AddCICommands)
|
|
}
|
|
|
|
// AddCICommands registers the 'ci' command and all subcommands.
|
|
func AddCICommands(root *cli.Command) {
|
|
root.AddCommand(ciCmd)
|
|
}
|