1
0
mirror of https://github.com/maaslalani/gambit.git synced 2024-11-21 16:46:50 +02:00
gambit/.goreleaser.yaml
Ayman Bagabas fe96530644 ci: add build and release workflow
* use goreleaser for release
* add docker builds
* add docker-compose.yml example
2022-02-23 13:48:18 -05:00

72 lines
1.7 KiB
YAML

project_name: gambit
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod download
- go mod tidy
builds:
- id: "gambit"
binary: "gambit"
ldflags: -s -w -X main.Version=v{{ .Version }} -X main.CommitSHA={{ .Commit }}
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
archives:
- format_overrides:
- goos: windows
format: zip
replacements:
windows: Windows
darwin: Darwin
386: i386
amd64: x86_64
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Others
order: 999
dockers:
- image_templates:
- "ghcr.io/maaslalani/gambit:latest"
- "ghcr.io/maaslalani/gambit:v{{ .Version }}"
ids: [gambit]
goarch: amd64
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/maaslalani/gambit
- --label=org.opencontainers.image.source=https://github.com/maaslalani/gambit
- --label=org.opencontainers.image.version=v{{ .Version }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
dockerfile: Dockerfile
use: buildx