ci: Added opencontainers labels

This commit is contained in:
Geoff Bourne 2020-12-25 21:00:17 -06:00
parent 8ccbdbfa38
commit 5707fb251d

View File

@ -41,6 +41,10 @@ dockers:
build_flag_templates:
- --platform
- linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/itzg/mc-router
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
binaries:
- mc-router
- image_templates:
@ -51,6 +55,10 @@ dockers:
build_flag_templates:
- --platform
- linux/arm64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/itzg/mc-router
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- image_templates:
- "itzg/{{ .ProjectName }}:{{ .Version }}-arm32v6"
goarch: arm
@ -58,6 +66,10 @@ dockers:
build_flag_templates:
- --platform
- linux/arm/v6
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/itzg/mc-router
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
binaries:
- mc-router
docker_manifests: