Skip to content

Commit

Permalink
build(ci): update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
criyle committed Jan 26, 2025
1 parent 6e65e2b commit bf5df76
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ builds:
- ppc64le
- s390x
goarm:
- "6"
- "5"
- "7"
goarm64:
- "v8.0"
goamd64:
- v2
- v3
tags:
- nomsgpack
- grpcnotrace
Expand All @@ -37,20 +42,14 @@ builds:
archives:
- files:
- mount.yaml
formats: [ 'binary', 'tar.gz' ]
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else }}{{ .Os }}{{ end }}_{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
- id: no_archive
files:
- mount.yaml
format: binary
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else }}{{ .Os }}{{ end }}_{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{end}}
nfpms:
- license: MIT
maintainer: "criyle"
Expand All @@ -67,6 +66,7 @@ dockers:
use: buildx
dockerfile: "Dockerfile.goreleaser"
goarch: amd64
goamd64: v2
extra_files:
- "mount.yaml"
build_flag_templates:
Expand All @@ -81,7 +81,7 @@ dockers:
build_flag_templates:
- "--platform=linux/arm64"
- image_templates:
- "criyle/go-judge:{{ .Tag }}-arm"
- "criyle/go-judge:{{ .Tag }}-armv7"
use: buildx
goarch: "arm"
goarm: "7"
Expand All @@ -90,6 +90,16 @@ dockers:
- "mount.yaml"
build_flag_templates:
- "--platform=linux/arm/v7"
- image_templates:
- "criyle/go-judge:{{ .Tag }}-armv5"
use: buildx
goarch: "arm"
goarm: "5"
dockerfile: "Dockerfile.goreleaser"
extra_files:
- "mount.yaml"
build_flag_templates:
- "--platform=linux/arm/v5"
- image_templates:
- "criyle/go-judge:{{ .Tag }}-ppc64le"
use: buildx
Expand Down Expand Up @@ -123,15 +133,17 @@ docker_manifests:
image_templates:
- "criyle/go-judge:{{ .Tag }}-amd64"
- "criyle/go-judge:{{ .Tag }}-arm64"
- "criyle/go-judge:{{ .Tag }}-arm"
- "criyle/go-judge:{{ .Tag }}-armv7"
- "criyle/go-judge:{{ .Tag }}-armv5"
- "criyle/go-judge:{{ .Tag }}-ppc64le"
- "criyle/go-judge:{{ .Tag }}-s390x"
# - "criyle/go-judge:{{ .Tag }}-riscv64"
- name_template: "criyle/go-judge:latest"
image_templates:
- "criyle/go-judge:{{ .Tag }}-amd64"
- "criyle/go-judge:{{ .Tag }}-arm64"
- "criyle/go-judge:{{ .Tag }}-arm"
- "criyle/go-judge:{{ .Tag }}-armv7"
- "criyle/go-judge:{{ .Tag }}-armv5"
- "criyle/go-judge:{{ .Tag }}-ppc64le"
- "criyle/go-judge:{{ .Tag }}-s390x"
# - "criyle/go-judge:{{ .Tag }}-riscv64"
Expand Down

0 comments on commit bf5df76

Please sign in to comment.