mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-29 03:24:07 +00:00
chore(cmd/sql-migrate): add .goreleaser.yaml
This commit is contained in:
parent
a4c4deabfa
commit
87b666ffd3
@ -29,7 +29,6 @@ builds:
|
|||||||
- netbsd
|
- netbsd
|
||||||
- openbsd
|
- openbsd
|
||||||
- wasip1
|
- wasip1
|
||||||
- windows
|
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- arm
|
- arm
|
||||||
@ -45,17 +44,35 @@ builds:
|
|||||||
goamd64:
|
goamd64:
|
||||||
- v1
|
- v1
|
||||||
- v2
|
- v2
|
||||||
|
- v3
|
||||||
|
- v4
|
||||||
|
- id: sql-migrate-windows
|
||||||
|
binary: sql-migrate
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
ldflags:
|
||||||
|
- -s -w -X main.version={{.Env.VERSION}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
|
||||||
|
goos:
|
||||||
|
- windows
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
goamd64:
|
||||||
|
- v1
|
||||||
|
- v2
|
||||||
|
- v3
|
||||||
|
- v4
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: sql-migrate
|
- id: sql-migrate
|
||||||
ids: [sql-migrate]
|
ids: [sql-migrate, sql-migrate-windows]
|
||||||
formats: [tar.gz, tar.zst]
|
formats: [tar.gz, tar.zst]
|
||||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
# this name template makes the OS and Arch compatible with the results of `uname`.
|
||||||
# it uses the VERSION env var so the prefixed monorepo tag doesn't appear in archive filenames.
|
# it uses the VERSION env var so the prefixed monorepo tag doesn't appear in archive filenames.
|
||||||
name_template: >-
|
name_template: >-
|
||||||
sql-migrate_{{ .Env.VERSION }}_
|
sql-migrate_{{ .Env.VERSION }}_
|
||||||
{{- title .Os }}_
|
{{- title .Os }}_
|
||||||
{{- if eq .Arch "amd64" }}x86_64
|
{{- if eq .Arch "amd64" }}x86_64{{ if .Amd64 }}_{{ .Amd64 }}{{ end }}
|
||||||
{{- else if eq .Arch "386" }}i386
|
{{- else if eq .Arch "386" }}i386
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user