teldrive/.goreleaser.yml

77 lines
1.9 KiB
YAML
Raw Normal View History

2024-07-07 15:06:54 +08:00
version: 2
2023-08-21 06:22:20 +08:00
project_name: teldrive
env:
- GO111MODULE=on
2023-09-08 18:59:19 +08:00
before:
hooks:
2024-02-09 00:16:34 +08:00
- make frontend
2023-08-21 06:22:20 +08:00
builds:
- env:
- CGO_ENABLED=0
2024-02-09 00:16:34 +08:00
main: main.go
2024-02-04 15:53:27 +08:00
flags: -trimpath
ldflags:
- -extldflags=-static
- -s -w
- -X {{ .ModulePath }}/internal/config.Version={{ .Version }}
2023-08-21 06:29:34 +08:00
mod_timestamp: "{{ .CommitTimestamp }}"
2023-08-21 06:22:20 +08:00
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
2024-02-09 00:16:34 +08:00
2023-08-21 06:22:20 +08:00
checksum:
2023-08-21 06:29:34 +08:00
name_template: "{{ .ProjectName }}_checksums.txt"
2024-02-09 00:16:34 +08:00
2023-08-21 06:22:20 +08:00
archives:
2024-02-04 15:53:27 +08:00
- name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
2023-08-21 06:22:20 +08:00
format_overrides:
- goos: windows
format: zip
files:
- README*.md
2024-02-09 00:16:34 +08:00
- LICENSE
2024-02-09 21:12:13 +08:00
dockers:
- image_templates:
- "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
use: buildx
dockerfile: goreleaser.dockerfile
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
- "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:latest"
use: buildx
dockerfile: goreleaser.dockerfile
goarch: arm64
build_flag_templates:
- --platform=linux/arm64/v8
docker_manifests:
- name_template: "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
- name_template: "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:latest"
image_templates:
- "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "ghcr.io/{{ .Env.GITHUB_ACTOR }}/{{ .ProjectName }}:{{ .Tag }}-arm64"
2024-02-09 00:16:34 +08:00
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
2024-02-09 21:12:13 +08:00
- '^ci:'
2024-02-09 00:16:34 +08:00
- 'README'
- Merge pull request
- Merge branch