Files
payments/.goreleaser.yml
zeekay 7d727874d5 chore: rebrand Formance Payments -> Hanzo Payments (hanzo-fi)
- go.mod module path + all self-imports: github.com/formancehq/payments -> github.com/hanzo-fi/payments
  (1590 .go files / 3152 refs; 20 modules: root, pkg/client, pkg/domain, 18 ce/plugins).
  External dep kept: formancehq/go-libs.
- plugins: each ce/plugins/* consumed a *published* pkg/domain; added local
  'replace .../pkg/domain => ../../../pkg/domain' (consistent with root) so every
  standalone plugin module builds in-monorepo. compile-plugin.sh MOD var rebranded too.
- branding: README, LICENSE (dual MIT+EE; upstream copyright retained + Hanzo added),
  goreleaser (release images -> registry.hanzo.ai/hanzo-fi, OCI labels, homepage),
  proto go_package, renovate, speakeasy gen.yaml, connector-template *.gotpl.
- CI: removed Numary/Formance workflows + composite action; added canonical hanzo.yml +
  cicd.yml (hanzoai/ci, gated HANZO_CI_ENABLED) + secretless ci.yml (go build/vet).
- kept as data/compat keys: wire capability enums ALLOW_FORMANCE_*, generated SDK type
  client.Formance, domain field FormanceRedirectURL, OTEL_SERVICE_NAME, upstream base image.
- verified: go build ./... (default + -tags ee) + all 20 nested modules green.
2026-07-05 13:08:55 -07:00

281 lines
12 KiB
YAML

# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2
project_name: payments
nightly:
version_template: '{{ .FullCommit }}'
publish_release: false
checksum:
name_template: '{{.ProjectName}}_checksums.txt'
snapshot:
version_template: "{{ .Version }}"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^spec:'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Other work
order: 999
builds:
- binary: payments
id: payments-ce
ldflags:
- -X github.com/hanzo-fi/payments/cmd.BuildDate={{ .Date }}
- -X github.com/hanzo-fi/payments/cmd.Version=v{{ .Version }}
- -X github.com/hanzo-fi/payments/cmd.Commit={{ .ShortCommit }}
- -X github.com/hanzo-fi/payments/cmd.Edition=community
- -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- binary: payments
id: payments-ee
tags:
- ee
ldflags:
- -X github.com/hanzo-fi/payments/cmd.BuildDate={{ .Date }}
- -X github.com/hanzo-fi/payments/cmd.Version=v{{ .Version }}
- -X github.com/hanzo-fi/payments/cmd.Commit={{ .ShortCommit }}
- -X github.com/hanzo-fi/payments/cmd.Edition=enterprise
- -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
archives:
- id: payments-ce
ids:
- payments-ce
formats:
- tar.gz
name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}"
- id: payments-ee
ids:
- payments-ee
formats:
- tar.gz
name_template: "{{.ProjectName}}-ee_{{.Os}}-{{.Arch}}"
dockers:
# CE - build.Dockerfile amd64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64"
ids:
- payments-ce
goarch: amd64
dockerfile: build.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
# CE - build.Dockerfile arm64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64"
ids:
- payments-ce
goarch: arm64
dockerfile: build.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
# CE - scratch.Dockerfile amd64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64-scratch"
ids:
- payments-ce
goarch: amd64
dockerfile: scratch.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
# CE - scratch.Dockerfile arm64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64-scratch"
ids:
- payments-ce
goarch: arm64
dockerfile: scratch.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
# EE - build.Dockerfile amd64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64"
ids:
- payments-ee
goarch: amd64
dockerfile: build.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}-ee
- --label=org.opencontainers.image.description={{ .ProjectName }}-ee
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
# EE - build.Dockerfile arm64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64"
ids:
- payments-ee
goarch: arm64
dockerfile: build.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}-ee
- --label=org.opencontainers.image.description={{ .ProjectName }}-ee
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
# EE - scratch.Dockerfile amd64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64-scratch"
ids:
- payments-ee
goarch: amd64
dockerfile: scratch.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}-ee
- --label=org.opencontainers.image.description={{ .ProjectName }}-ee
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
# EE - scratch.Dockerfile arm64
- image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64-scratch"
ids:
- payments-ee
goarch: arm64
dockerfile: scratch.Dockerfile
use: buildx
build_flag_templates:
- --provenance=false
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}-ee
- --label=org.opencontainers.image.description={{ .ProjectName }}-ee
- --label=org.opencontainers.image.url=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/hanzo-fi/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
docker_manifests:
# CE - versioned
- name_template: "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}"
image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64"
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64"
# CE - latest
- name_template: "{{ if not .IsNightly }}{{ if not .Prerelease }}registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:latest{{ end }}{{ end }}"
image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64"
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64"
# CE - scratch
- name_template: "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-scratch"
image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64-scratch"
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64-scratch"
# EE - versioned
- name_template: "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}"
image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64"
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64"
# EE - latest
- name_template: "{{ if not .IsNightly }}{{ if not .Prerelease }}registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:latest{{ end }}{{ end }}"
image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64"
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64"
# EE - scratch
- name_template: "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-scratch"
image_templates:
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-amd64-scratch"
- "registry.hanzo.ai/hanzo-fi/{{ .ProjectName }}-ee:{{ if not .IsNightly }}v{{ end }}{{ .Version }}-arm64-scratch"
release:
prerelease: auto
footer: |
## What to do next?
- Read the [documentation](https://hanzo.ai/)
- Join our [GitHub Discussions](https://github.com/orgs/hanzo-fi/discussions)