File tree 1 file changed +26
-2
lines changed
1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,25 @@ dockers:
26
26
ids :
27
27
- gnmic
28
28
image_templates :
29
- - " ghcr.io/openconfig/gnmic:latest"
30
- - ' ghcr.io/openconfig/gnmic:{{ replace .Version "v" ""}}'
29
+ - &amd64_latest_image "ghcr.io/openconfig/gnmic:latest-amd64 "
30
+ - &amd64_versioned_image 'ghcr.io/openconfig/gnmic:{{ replace .Version "v" ""}}-amd64 '
31
31
dockerfile : goreleaser-alpine.dockerfile
32
32
skip_push : false
33
+ use : buildx
34
+ build_flag_templates :
35
+ - " --platform=linux/amd64"
36
+ - goos : linux
37
+ goarch : arm64
38
+ ids :
39
+ - gnmic
40
+ image_templates :
41
+ - &arm64_latest_image "ghcr.io/openconfig/gnmic:latest-arm64"
42
+ - &arm64_versioned_image 'ghcr.io/openconfig/gnmic:{{ replace .Version "v" ""}}-arm64'
43
+ dockerfile : goreleaser-alpine.dockerfile
44
+ skip_push : false
45
+ use : buildx
46
+ build_flag_templates :
47
+ - " --platform=linux/arm64"
33
48
- goos : linux
34
49
goarch : amd64
35
50
ids :
@@ -39,6 +54,15 @@ dockers:
39
54
- ' ghcr.io/openconfig/gnmic:{{ replace .Version "v" ""}}-scratch'
40
55
dockerfile : goreleaser-scratch.dockerfile
41
56
skip_push : false
57
+ docker_manifests :
58
+ - name_template : ' ghcr.io/openconfig/gnmic:{{ replace .Version "v" "" }}'
59
+ image_templates :
60
+ - *amd64_versioned_image
61
+ - *arm64_versioned_image
62
+ - name_template : " {{- if not .IsSnapshot}}ghcr.io/openconfig/gnmic:latest{{- end}}"
63
+ image_templates :
64
+ - *amd64_latest_image
65
+ - *arm64_latest_image
42
66
archives :
43
67
- name_template : >-
44
68
{{ .ProjectName }}_
You can’t perform that action at this time.
0 commit comments