forked from Versent/saml2aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.ubuntu-20.04.yml
94 lines (93 loc) · 2.29 KB
/
.goreleaser.ubuntu-20.04.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
---
project_name: saml2aws-u2f
builds:
- id: saml2aws
main: ./cmd/saml2aws/main.go
binary: saml2aws
flags:
- -trimpath
- -v
ldflags:
- -s -w -X main.Version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
goos:
- linux
goarch:
- amd64
overrides:
- goos: linux
goarch: amd64
goamd64: v1
tags:
- hidraw
env:
- CGO_ENABLED=1
- id: saml2aws-static
main: ./cmd/saml2aws/main.go
binary: saml2aws
flags:
- -trimpath
- -v
ldflags:
- -s -w -X main.Version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -extldflags "-static"
goos:
- linux
goarch:
- amd64
- arm64
- arm
env:
- CGO_ENABLED=0
archives:
- id: saml2aws
format: tar.gz
builds: [saml2aws]
wrap_in_directory: false
# remove README and LICENSE
files:
- LICENSE.md
- README.md
- id: saml2aws-static
format: tar.gz
builds: [saml2aws-static]
wrap_in_directory: false
# remove README and LICENSE
files:
- LICENSE.md
- README.md
name_template: "{{ .ProjectName }}_static_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
dockers:
- id: amd64
goos: linux
goarch: amd64
use: buildx
ids:
- saml2aws-static
image_templates:
- ghcr.io/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64
- ghcr.io/{{ .Env.IMAGE_NAME }}:latest-amd64
build_flag_templates:
- "--build-arg=BASE_IMAGE_ARCH=static-debian11"
- "--platform=linux/amd64"
- id: arm64
goos: linux
goarch: arm64
use: buildx
ids:
- saml2aws-static
image_templates:
- ghcr.io/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64
- ghcr.io/{{ .Env.IMAGE_NAME }}:latest-arm64
build_flag_templates:
- "--build-arg=BASE_IMAGE_ARCH=static:latest-arm64"
- "--platform=linux/arm64"
docker_manifests:
- name_template: ghcr.io/{{ .Env.IMAGE_NAME }}:{{ .Version }}
image_templates:
- ghcr.io/{{ .Env.IMAGE_NAME }}:{{ .Version }}-amd64
- ghcr.io/{{ .Env.IMAGE_NAME }}:{{ .Version }}-arm64
- name_template: ghcr.io/{{ .Env.IMAGE_NAME }}:latest
image_templates:
- ghcr.io/{{ .Env.IMAGE_NAME }}:latest-amd64
- ghcr.io/{{ .Env.IMAGE_NAME }}:latest-arm64