Skip to content

Commit

Permalink
Merge pull request #1 from RabotaRu/develop
Browse files Browse the repository at this point in the history
added .goreleaser.yml
  • Loading branch information
zhilyaev authored Feb 25, 2022
2 parents 69e5321 + 5b86976 commit b8e21af
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
ldflags:
- -s -w -X main.Version={{.Version}}

checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"

release:
name_template: "v{{.Version}}"
# draft: true
prerelease: auto

changelog:
skip: false
use: github
sort: asc

groups:
- title: "Linter"
regexp: "^.*linter.*$"
order: 0
- title: "Tests"
regexp: "^.*tests?.*$"
order: 1
- title: "Documentation"
regexp: "^.*(documentation|docs?).*$"
order: 2
- title: "Other"
order: 999

filters:
exclude:
- "^WIP:"
- Merge pull request
- Merge branch
- go mod tidy
- typo

dockers:
- dockerfile: Dockerfile
image_templates:
- "ghcr.io/rabotaru/sbercdn-exporter:{{ .Version }}"
- "ghcr.io/rabotaru/sbercdn-exporter:latest"

- "rabotaru/sbercdn-exporter:{{ .Version }}"
- "rabotaru/sbercdn-exporter:latest"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.licenses=MIT"
- "--label=org.opencontainers.image.source=https://github.com/rabotaru/sbercdn-exporter"
- "--label=org.opencontainers.image.url=https://github.com/rabotaru/sbercdn-exporter/pkgs/container/sbercdn-exporter"

- "--platform=linux/amd64"
goos: linux
goarch: amd64
use: buildx

milestones:
- repo:
owner: rabotaru
name: sbercdn-exporter
close: true
fail_on_error: false
name_template: "{{.Tag}}"

0 comments on commit b8e21af

Please sign in to comment.