-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser-docker-multiarch.yml
49 lines (47 loc) · 1.2 KB
/
.goreleaser-docker-multiarch.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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
- env:
- CGO_ENABLED=0
binary: mybin
main: ./main.go
goos:
- linux
goarch:
- amd64
- arm64
dockers:
- image_templates: ["caarlos0/gmarchtest:{{ .Version }}-amd64"]
use_buildx: true
dockerfile: Dockerfile.multiarch
build_flag_templates: ["--platform=linux/amd64"]
- image_templates: ["caarlos0/gmarchtest:{{ .Version }}-arm64"]
use_buildx: true
goarch: arm64
dockerfile: Dockerfile.multiarch
build_flag_templates: ["--platform=linux/arm64"]
docker_manifests:
- name_template: caarlos0/gmarchtest:{{ .Version }}
image_templates:
- caarlos0/gmarchtest:{{ .Version }}-amd64
- caarlos0/gmarchtest:{{ .Version }}-arm64
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
args:
- "sign-blob"
- "--rekor-url=https://rekor.sigstore.dev"
- "--oidc-issuer=https://oauth2.sigstore.dev/auth"
- "--output=${signature}"
- "${artifact}"
artifacts: all
docker_signs:
- artifacts: all
env:
- COSIGN_EXPERIMENTAL=1
args:
- "sign"
- "--rekor-url=https://rekor.sigstore.dev"
- "--oidc-issuer=https://oauth2.sigstore.dev/auth"
- "${artifact}"