Skip to content

Commit

Permalink
fix: match docker manifests and builds in goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Apr 14, 2023
1 parent 0cf0083 commit bff8f19
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ dockers:
- skip_push: auto
use: buildx
image_templates:
- "omissis/go-jsonschema:latest"
- "omissis/go-jsonschema:{{ .Major }}"
- "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}"
- "omissis/go-jsonschema:{{ .Version }}"
- "omissis/go-jsonschema:latest-amd64"
- "omissis/go-jsonschema:{{ .Major }}-amd64"
- "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}-amd64"
- "omissis/go-jsonschema:{{ .Version }}-amd64"
build_flag_templates:
- "--target=go-jsonschema"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand All @@ -68,10 +68,10 @@ dockers:
- skip_push: auto
use: buildx
image_templates:
- "omissis/go-jsonschema:latest"
- "omissis/go-jsonschema:{{ .Major }}"
- "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}"
- "omissis/go-jsonschema:{{ .Version }}"
- "omissis/go-jsonschema:latest-arm64v8"
- "omissis/go-jsonschema:{{ .Major }}-arm64v8"
- "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}-arm64v8"
- "omissis/go-jsonschema:{{ .Version }}-arm64v8"
build_flag_templates:
- "--target=go-jsonschema"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand All @@ -81,6 +81,21 @@ dockers:
- "--platform=linux/arm64/v8"
goarch: arm64
docker_manifests:
- skip_push: auto
name_template: "omissis/go-jsonschema:latest"
image_templates:
- "omissis/go-jsonschema:latest-amd64"
- "omissis/go-jsonschema:latest-arm64v8"
- skip_push: auto
name_template: "omissis/go-jsonschema:{{ .Major }}"
image_templates:
- "omissis/go-jsonschema:{{ .Major }}-amd64"
- "omissis/go-jsonschema:{{ .Major }}-arm64v8"
- skip_push: auto
name_template: "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}"
image_templates:
- "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}-amd64"
- "omissis/go-jsonschema:{{ .Major }}.{{ .Minor }}-arm64v8"
- skip_push: auto
name_template: "omissis/go-jsonschema:{{ .Version }}"
image_templates:
Expand Down

0 comments on commit bff8f19

Please sign in to comment.