forked from criyle/go-judge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
121 lines (121 loc) · 3.06 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: executorserver
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go mod download
# you may remove this if you don't need go generate
- go generate ./cmd/...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- "386"
- amd64
- arm
- arm64
- riscv64
goarm:
- "6"
- "7"
tags:
- nomsgpack
main: ./cmd/executorserver
binary: executorserver
archives:
- files:
- mount.yaml
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 }}
nfpms:
- license: MIT
maintainer: "criyle"
formats:
- apk
- deb
- rpm
dockers:
- image_templates:
- "criyle/executorserver:{{ .Tag }}-amd64"
use: buildx
dockerfile: "Dockerfile.goreleaser"
goarch: amd64
extra_files:
- "mount.yaml"
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "criyle/executorserver:{{ .Tag }}-arm64"
use: buildx
goarch: "arm64"
dockerfile: "Dockerfile.goreleaser"
extra_files:
- "mount.yaml"
build_flag_templates:
- "--platform=linux/arm64"
- image_templates:
- "criyle/executorserver:{{ .Tag }}-arm"
use: buildx
goarch: "arm"
goarm: "7"
dockerfile: "Dockerfile.goreleaser"
extra_files:
- "mount.yaml"
build_flag_templates:
- "--platform=linux/arm/v7"
# Debian is not supporting riscv64 on stable branch, skip it first
# - image_templates:
# - "criyle/executorserver:{{ .Tag }}-riscv64"
# use: buildx
# dockerfile: "Dockerfile.goreleaser"
# goarch: riscv64
# extra_files:
# - "mount.yaml"
# build_flag_templates:
# - "--platform=linux/riscv64"
docker_manifests:
- name_template: "criyle/executorserver:{{ .Tag }}"
image_templates:
- "criyle/executorserver:{{ .Tag }}-amd64"
- "criyle/executorserver:{{ .Tag }}-arm64"
- "criyle/executorserver:{{ .Tag }}-arm"
# - "criyle/executorserver:{{ .Tag }}-riscv64"
- name_template: "criyle/executorserver:latest"
image_templates:
- "criyle/executorserver:{{ .Tag }}-amd64"
- "criyle/executorserver:{{ .Tag }}-arm64"
- "criyle/executorserver:{{ .Tag }}-arm"
# - "criyle/executorserver:{{ .Tag }}-riscv64"
skip_push: auto
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
github:
owner: criyle
name: go-judge