-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
49 lines (48 loc) · 1.14 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
&shared:
build: &build_base
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- "-s -w"
hooks:
post:
- |
{{ if and (eq .Os "windows") (eq .Arch "arm64") -}}
echo "Skipped on windows-arm64"
{{- else -}}
upx "{{ .Path }}"
{{- end }}
version: 2
builds:
- <<: *build_base
id: uaws-cloudfront-create-invalidation
main: ./cmd/uaws-cloudfront-create-invalidation/
binary: uaws-cloudfront-create-invalidation
- <<: *build_base
id: uaws-ecr-get-login-password
main: ./cmd/uaws-ecr-get-login-password/
binary: uaws-ecr-get-login-password
- <<: *build_base
id: uaws-s3-sync
main: ./cmd/uaws-s3-sync/
binary: uaws-s3-sync
- <<: *build_base
id: uaws-ssm-get-parameter
main: ./cmd/uaws-ssm-get-parameter/
binary: uaws-ssm-get-parameter
archives:
- builds:
- uaws-cloudfront-create-invalidation
- uaws-ecr-get-login-password
- uaws-s3-sync
- uaws-ssm-get-parameter
format: binary
checksum:
name_template: 'checksums.txt'