From 0f526f05ab8aebe99029d75f9eccd299af01c101 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 10 Sep 2022 17:00:19 +0200 Subject: [PATCH] chore: enforce platform --- .goreleaser.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f78d5ec..88d8e52 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -59,10 +59,13 @@ dockers: - 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64' build_flag_templates: - '--pull' + - '--label=org.opencontainers.image.description=Tiny Go webserver that prints OS information and HTTP request to output' - '--label=org.opencontainers.image.created={{.Date}}' - '--label=org.opencontainers.image.title={{.ProjectName}}' - '--label=org.opencontainers.image.revision={{.FullCommit}}' - '--label=org.opencontainers.image.version={{.Version}}' + - '--label=org.opencontainers.image.source={{.GitURL}}' + - '--platform=linux/amd64' - use: buildx goos: linux @@ -74,8 +77,10 @@ dockers: - 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64' build_flag_templates: - '--pull' + - '--label=org.opencontainers.image.description=Tiny Go webserver that prints OS information and HTTP request to output' - '--label=org.opencontainers.image.created={{.Date}}' - '--label=org.opencontainers.image.title={{.ProjectName}}' - '--label=org.opencontainers.image.revision={{.FullCommit}}' - '--label=org.opencontainers.image.version={{.Version}}' - + - '--label=org.opencontainers.image.source={{.GitURL}}' + - '--platform=linux/arm64'