-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
81 lines (68 loc) · 3.33 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
project_name: spacelift-vcs-agent
version: 2
builds:
- main: ./cmd/spacelift-vcs-agent
env: [CGO_ENABLED=0]
goos: [windows, linux, darwin]
goarch: [amd64, arm64]
flags: [-trimpath]
tags: [netgo]
ldflags:
- "-s -w -extldflags '-static' -X main.VERSION={{ .ShortCommit }} -X main.BugsnagAPIKey={{ .Env.BUGSNAG_API_KEY }}"
changelog:
use: github-native
release:
disable: "{{ .Env.DISABLE_GITHUB_RELEASE }}"
header: |
## Artifacts
### Docker images
The following multi-arch Docker images have been published:
- `{{ .Env.REPOSITORY_URL }}:latest`
- `{{ .Env.REPOSITORY_URL }}:{{ .Version }}`
### Binaries
The latest binaries are available in this release page, as well as on Spacelift's CDN:
| URL | Architecture |
| ------------------------------------------------------------ | ------------- |
| <https://downloads.spacelift.io/spacelift-vcs-agent-x86_64> | Linux (amd64) |
| <https://downloads.spacelift.io/spacelift-vcs-agent-aarch64> | Linux (arm64) |
archives:
- format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
dockers:
- use: buildx
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.vendor=Spacelift"
- "--label=org.opencontainers.image.description=Spacelift VCS Agent version {{ .Version }}"
- "--label=org.opencontainers.image.url=https://github.com/spacelift-io/vcs-agent"
- "--label=org.opencontainers.image.documentation=https://docs.spacelift.io/concepts/vcs-agent-pools"
- "--label=org.opencontainers.image.source=https://github.com/spacelift-io/vcs-agent"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.created={{ time \"2006-01-02T15:04:05Z07:00\" }}"
image_templates: ["{{ .Env.REPOSITORY_URL }}:{{ .Version }}-amd64"]
- use: buildx
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.vendor=Spacelift"
- "--label=org.opencontainers.image.description=Spacelift VCS Agent version {{ .Version }}"
- "--label=org.opencontainers.image.url=https://github.com/spacelift-io/vcs-agent"
- "--label=org.opencontainers.image.documentation=https://docs.spacelift.io/concepts/vcs-agent-pools"
- "--label=org.opencontainers.image.source=https://github.com/spacelift-io/vcs-agent"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.created={{ time \"2006-01-02T15:04:05Z07:00\" }}"
image_templates: ["{{ .Env.REPOSITORY_URL }}:{{ .Version }}-arm64"]
docker_manifests:
- name_template: "{{ .Env.REPOSITORY_URL }}:{{ .Version }}"
image_templates:
- "{{ .Env.REPOSITORY_URL }}:{{ .Version }}-amd64"
- "{{ .Env.REPOSITORY_URL }}:{{ .Version }}-arm64"
- name_template: "{{ .Env.REPOSITORY_URL }}:latest"
image_templates:
- "{{ .Env.REPOSITORY_URL }}:{{ .Version }}-amd64"
- "{{ .Env.REPOSITORY_URL }}:{{ .Version }}-arm64"