Skip to content

Commit

Permalink
Added more architectures to container images
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangel-nubla committed Apr 3, 2023
1 parent 73e73a4 commit 38ad6f7
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@ builds:
- 6
- 7
dockers:
-
image_templates:
- "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-i386"
dockerfile: 'Dockerfile.goreleaser'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/i386"
- "--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.url=https://github.com/miguelangel-nubla/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/miguelangel-nubla/{{ .ProjectName }}"
extra_files:
- LICENSE.txt
-
image_templates:
- "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-amd64"
Expand All @@ -55,6 +71,34 @@ dockers:
- "--label=org.opencontainers.image.source=https://github.com/miguelangel-nubla/{{ .ProjectName }}"
extra_files:
- LICENSE.txt
-
image_templates:
- "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-armv6"
dockerfile: 'Dockerfile.goreleaser'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm/v6"
- "--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.url=https://github.com/miguelangel-nubla/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/miguelangel-nubla/{{ .ProjectName }}"
-
image_templates:
- "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-armv7"
dockerfile: 'Dockerfile.goreleaser'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm/v7"
- "--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.url=https://github.com/miguelangel-nubla/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/miguelangel-nubla/{{ .ProjectName }}"
-
image_templates:
- "ghcr.io/miguelangel-nubla/{{.ProjectName}}:{{ .Tag }}-arm64v8"
Expand All @@ -75,17 +119,34 @@ docker_manifests:
-
name_template: ghcr.io/miguelangel-nubla/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-i386
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv6
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64v8
-
name_template: ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}
image_templates:
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-i386
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv6
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64v8
-
name_template: ghcr.io/miguelangel-nubla/{{.ProjectName}}:v{{ .Major }}
image_templates:
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-i386
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv6
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64v8
-
name_template: ghcr.io/miguelangel-nubla/{{.ProjectName}}:v{{ .Major }}.{{ .Minor }}
image_templates:
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-i386
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-amd64
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv6
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-armv7
- ghcr.io/miguelangel-nubla/{{ .ProjectName }}:{{ .Tag }}-arm64v8

archives:
Expand Down

0 comments on commit 38ad6f7

Please sign in to comment.