-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
128 lines (127 loc) · 4 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
version: 2
project_name: spice
builds:
- main: ./.github/media/dummy.go
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
hooks:
post:
- mv ./bin/spice-{{ .Os }}-{{ .Arch }}/spice{{ .Ext }} {{ .Path }}
dockers:
- image_templates:
- ghcr.io/spicelang/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- ghcr.io/spicelang/spice:latest-amd64
- chillibits/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- chillibits/spice:latest-amd64
dockerfile: Dockerfile
skip_push: auto
use: buildx
goarch: amd64
extra_files:
- bin
- std
build_flag_templates:
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.name={{.ProjectName}}
- --label=org.opencontainers.image.revision={{.FullCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.source={{.GitURL}}
- --platform=linux/amd64
- image_templates:
- ghcr.io/spicelang/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-aarch64
- ghcr.io/spicelang/spice:latest-aarch64
- chillibits/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-aarch64
- chillibits/spice:latest-aarch64
dockerfile: Dockerfile
skip_push: auto
use: buildx
goarch: arm64
extra_files:
- bin
- std
build_flag_templates:
- --label=org.opencontainers.image.created={{.Date}}
- --label=org.opencontainers.image.name={{.ProjectName}}
- --label=org.opencontainers.image.revision={{.FullCommit}}
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.source={{.GitURL}}
- --platform=linux/arm64
docker_manifests:
- name_template: chillibits/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
image_templates:
- chillibits/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- chillibits/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-aarch64
skip_push: auto
- name_template: chillibits/spice:latest
image_templates:
- chillibits/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- chillibits/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-aarch64
skip_push: auto
- name_template: ghcr.io/spicelang/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
image_templates:
- ghcr.io/spicelang/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- ghcr.io/spicelang/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-aarch64
skip_push: auto
- name_template: ghcr.io/spicelang/spice:latest
image_templates:
- ghcr.io/spicelang/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64
- ghcr.io/spicelang/spice:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-aarch64
skip_push: auto
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE
- std
format_overrides:
- goos: windows
format: zip
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
nfpms:
- id: publish
file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
maintainer: Marc Auberer <marc.auberer@chillibits.com>
vendor: ChilliBits
description: Spice programming language.
homepage: https://www.spicelang.com
license: MIT
bindir: /usr/bin
formats:
- apk
- deb
- rpm
dependencies:
- build-essential
- clang
- lld
contents:
- src: std
dst: /usr/lib/spice/std
release:
name_template: v{{ .Tag }}
prerelease: auto
footer: |
## What to do next?
- [Install Spice](https://www.spicelang.com/install/linux)
- Visit [www.spicelang.com](https://www.spicelang.com) to test the new features
changelog:
use: github
filters:
exclude:
- Merge pull request
- Merge branch
milestones:
- close: true
fail_on_error: false