File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -67,26 +67,26 @@ signs:
67
67
68
68
# create a docker image
69
69
# https://goreleaser.com/customization/docker
70
- dockers :
71
- - image_templates :
72
- - " ghcr.io/goreleaser/example-supply-chain:{{ .Tag }}"
70
+ dockers_v2 :
71
+ - images :
72
+ - " ghcr.io/goreleaser/example-supply-chain"
73
+ tags :
74
+ - latest
75
+ - " {{ .Tag }}"
73
76
dockerfile : Dockerfile
74
- build_flag_templates :
75
- - " --pull"
76
- - " --label=org.opencontainers.image.created={{.Date}}"
77
- - " --label=org.opencontainers.image.name={{.ProjectName}}"
78
- - " --label=org.opencontainers.image.revision={{.FullCommit}}"
79
- - " --label=org.opencontainers.image.version={{.Version}}"
80
- - " --label=org.opencontainers.image.source={{.GitURL}}"
77
+ labels :
78
+ org.opencontainers.image.created : " {{.Date}}"
79
+ org.opencontainers.image.name : " {{.ProjectName}}"
80
+ org.opencontainers.image.revision : " {{.FullCommit}}"
81
+ org.opencontainers.image.version : " {{.Version}}"
82
+ org.opencontainers.image.source : " {{.GitURL}}"
81
83
82
84
# signs our docker image
83
85
# https://goreleaser.com/customization/docker_sign
84
86
docker_signs :
85
87
- cmd : cosign
86
- artifacts : images
87
88
output : true
88
89
args :
89
90
- " sign"
90
91
- " ${artifact}"
91
- - " --yes" # needed on cosign 2.0.0+
92
-
92
+ - " --yes"
Original file line number Diff line number Diff line change 1
1
FROM scratch
2
- COPY supply-chain-example /usr/bin/supply-chain-example
2
+ ARG TARGETPLATFORM
3
3
ENTRYPOINT [ "/usr/bin/supply-chain-example" ]
4
+ COPY $TARGETPLATFORM/supply-chain-example /usr/bin/supply-chain-example
You can’t perform that action at this time.
0 commit comments