forked from goproxy/goproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
142 lines (136 loc) · 5.54 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
before:
hooks:
- go mod download
builds:
- id: goproxy
main: ./cmd/goproxy
ldflags:
- -s -w -X github.com/goproxy/goproxy/cmd/goproxy/internal.Version=v{{.Version}}
env:
- CGO_ENABLED=0
targets:
- darwin_amd64
- darwin_arm64
- linux_386
- linux_amd64
- linux_arm64
- linux_arm_6
- linux_arm_7
- linux_ppc64le
- linux_s390x
- windows_386
- windows_amd64
- windows_arm64
mod_timestamp: "{{.CommitTimestamp}}"
archives:
- id: goproxy
dockers:
- goarch: "386"
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-386
use: buildx
build_flag_templates:
- --platform=linux/386
- --build-arg=USE_GORELEASER_ARTIFACTS=1
extra_files:
- ./
- goarch: amd64
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-amd64
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --build-arg=USE_GORELEASER_ARTIFACTS=1
extra_files:
- ./
- goarch: arm64
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-arm64
use: buildx
build_flag_templates:
- --platform=linux/arm64
- --build-arg=USE_GORELEASER_ARTIFACTS=1
extra_files:
- ./
- goarch: arm
goarm: "6"
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
use: buildx
build_flag_templates:
- --platform=linux/arm/v6
- --build-arg=USE_GORELEASER_ARTIFACTS=1
extra_files:
- ./
- goarch: arm
goarm: "7"
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
use: buildx
build_flag_templates:
- --platform=linux/arm/v7
- --build-arg=USE_GORELEASER_ARTIFACTS=1
extra_files:
- ./
- goarch: ppc64le
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
use: buildx
build_flag_templates:
- --platform=linux/ppc64le
- --build-arg=USE_GORELEASER_ARTIFACTS=1
extra_files:
- ./
- goarch: s390x
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
use: buildx
build_flag_templates:
- --platform=linux/s390x
- --build-arg=USE_GORELEASER_ARTIFACTS=1
extra_files:
- ./
docker_manifests:
- name_template: ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-386
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-amd64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-arm64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
- name_template: ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Major}}.{{.Minor}}
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-386
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-amd64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-arm64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
skip_push: auto
- name_template: ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Major}}
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-386
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-amd64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-arm64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
skip_push: auto
- name_template: ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:latest
image_templates:
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-386
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-amd64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-arm64
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv6
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-armv7
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-ppc64le
- ghcr.io/{{envOrDefault "GITHUB_REPOSITORY" "goproxy/goproxy"}}:{{.Version}}-s390x
skip_push: auto
snapshot:
name_template: '{{trimprefix .Summary "v"}}'
release:
prerelease: auto