-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
162 lines (143 loc) · 5.56 KB
/
.goreleaser.yml
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: batch-simulator
snapshot:
name_template: "{{ .FullCommit }}"
env:
- DOCKER_REPO={{ if index .Env "DOCKER_REPO" }}{{ .Env.DOCKER_REPO }}/{{ else }}dpejcev/{{ end }}
- DOCKER_BUILDX_BUILDER={{ if index .Env "DOCKER_BUILDX_BUILDER" }}{{ .Env.DOCKER_BUILDX_BUILDER }}{{ else }}default{{ end }}
builds:
- env: [CGO_ENABLED=0]
id: batchsim
binary: batchsim
main: ./cmd/simulator/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
source:
enabled: true
name_template: '{{ .ProjectName }}_{{ replace .Version "-" "_" }}_source'
format: "zip"
archives:
- id: batchsim
builds:
- batchsim
allow_different_binary_count: true
name_template: 'batchsim_{{ replace .Version "-" "_" }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
# macOS Universal Binaries-*
universal_binaries:
- replace: true
id: batchsim
name_template: 'batchsim'
sboms:
- artifacts: archive
dockers:
- id: batchsim-amd64
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}batchsim:latest-amd64"
- "{{ .Env.DOCKER_REPO }}batchsim:{{ .Version }}-amd64"
build_flag_templates:
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --platform=linux/amd64
- --label=org.opencontainers.image.title=batchsim
- --label=org.opencontainers.image.description="Simulator for running batch simulations using KWOK in Kubernetes"
- --label=org.opencontainers.image.documentation=https://github.com/dejanzele/batch-simulator/blob/master/docs/batchsim.md
- --label=org.opencontainers.image.source=https://github.com/dejanzele/batch-simulator
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=scratch
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.authors=Dejan Zele Pejchev <[email protected]>
ids:
- batchsim
dockerfile: ./build/simulator/Dockerfile
- id: batchsim-arm64
use: buildx
goos: linux
goarch: arm64
image_templates:
- "{{ .Env.DOCKER_REPO }}batchsim:latest-arm64"
- "{{ .Env.DOCKER_REPO }}batchsim:{{ .Version }}-arm64"
build_flag_templates:
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --platform=linux/arm64
- --label=org.opencontainers.image.title=batchsim
- --label=org.opencontainers.image.description="Simulator for running batch simulations using KWOK in Kubernetes"
- --label=org.opencontainers.image.documentation=https://github.com/dejanzele/batch-simulator/blob/master/docs/batchsim.md
- --label=org.opencontainers.image.source=https://github.com/dejanzele/batch-simulator
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=scratch
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.authors=Dejan Zele Pejchev <[email protected]>
ids:
- batchsim
dockerfile: ./build/simulator/Dockerfile
docker_manifests:
- name_template: '{{ .Env.DOCKER_REPO }}batchsim:{{ .Version }}'
image_templates:
- '{{ .Env.DOCKER_REPO }}batchsim:{{ .Version }}-amd64'
- '{{ .Env.DOCKER_REPO }}batchsim:{{ .Version }}-arm64'
- name_template: '{{ .Env.DOCKER_REPO }}batchsim:latest'
image_templates:
- '{{ .Env.DOCKER_REPO }}batchsim:latest-amd64'
- '{{ .Env.DOCKER_REPO }}batchsim:latest-arm64'
changelog:
use:
github
sort: asc
abbrev: 0
groups: # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax.
- title: 'Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation'
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 300
- title: 'Dependency updates'
regexp: '^.*?(feat|fix|chore)\(deps?.+\)!?:.+$'
order: 400
- title: 'Other work'
order: 999
filters:
exclude:
- '^test:'
- '^.*?Bump(\([[:word:]]+\))?.+$'
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
disable: '{{ if index .Env "FULL_RELEASE" }}false{{ else }}true{{ end }}'
mode: replace
header: |
## Batch Simulator v{{ .Version }}
For more info, head over to the docs page at https://github.com/dejanzele/batch-simulator/blob/master/docs/batchsim.md
### batchsim CLI
`batchsim` contains commands for installing & configuring KWOK (Operator & Stages) and running simulations.
The CLI can be downloaded for a specific OS & Architecture from the Assets section below.
_NOTE: The OSX binary is packaged as an universal binary and should work on both Intel and Apple Silicon based Macs._
### Docker images
#### batchsim
- `docker pull {{ .Env.DOCKER_REPO }}batchsim:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}batchsim:latest`
footer: |
**Full Changelog**: https://github.com/dejanzele/batch-simulator/compare/{{ .PreviousTag }}...{{ .Tag }}