mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
97 lines
2.3 KiB
YAML
97 lines
2.3 KiB
YAML
project_name: ionscale
|
|
|
|
nightly:
|
|
name_template: '{{ incminor .Version }}-dev'
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- main: ./cmd/ionscale
|
|
env: [ CGO_ENABLED=0 ]
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ignore:
|
|
- goos: windows
|
|
goarch: arm64
|
|
ldflags:
|
|
- -s -w -X github.com/jsiebens/ionscale/internal/version.Version={{.Version}} -X github.com/jsiebens/ionscale/internal/version.Revision={{.ShortCommit}}
|
|
|
|
dockers:
|
|
- image_templates: [ "ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-amd64" ]
|
|
dockerfile: Dockerfile
|
|
use: buildx
|
|
build_flag_templates:
|
|
- --platform=linux/amd64
|
|
- image_templates: [ "ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-arm64" ]
|
|
goarch: arm64
|
|
dockerfile: Dockerfile
|
|
use: buildx
|
|
build_flag_templates:
|
|
- --platform=linux/arm64
|
|
|
|
docker_manifests:
|
|
- name_template: ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}
|
|
image_templates:
|
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-amd64
|
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-arm64
|
|
- name_template: ghcr.io/jsiebens/{{ .ProjectName }}:{{ if .IsNightly }}dev{{ else }}latest{{ end }}
|
|
image_templates:
|
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-amd64
|
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-arm64
|
|
|
|
signs:
|
|
- cmd: cosign
|
|
env:
|
|
- COSIGN_EXPERIMENTAL=1
|
|
certificate: '${artifact}.pem'
|
|
args:
|
|
- sign-blob
|
|
- '--output-certificate=${certificate}'
|
|
- '--output-signature=${signature}'
|
|
- '${artifact}'
|
|
artifacts: checksum
|
|
|
|
docker_signs:
|
|
- cmd: cosign
|
|
env:
|
|
- COSIGN_EXPERIMENTAL=1
|
|
artifacts: all
|
|
output: true
|
|
args:
|
|
- sign
|
|
- '${artifact}'
|
|
|
|
archives:
|
|
- format: binary
|
|
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}'
|
|
|
|
release:
|
|
prerelease: auto
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^test:'
|
|
- '^chore'
|
|
- '^docs'
|
|
- 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 |