Skip to content

Commit

Permalink
Updated .goreleaser.yml to build docker images for multiple architect…
Browse files Browse the repository at this point in the history
…ures. Docker image releases use manifests for multi-arch delivery
  • Loading branch information
gadgethm committed Jun 5, 2022
1 parent fbeeae0 commit d94ba75
Showing 1 changed file with 64 additions and 2 deletions.
66 changes: 64 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ changelog:
- Merge branch
dockers:
- image_templates:
- 'skibish/ddns:{{ .Tag }}'
- 'skibish/ddns:latest'
- 'skibish/ddns:{{ .Tag }}-amd64'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
Expand All @@ -46,3 +45,66 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- image_templates:
- 'skibish/ddns:{{ .Tag }}-arm64'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64"
- image_templates:
- 'skibish/ddns:{{ .Tag }}-armv6'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm/v6"
- image_templates:
- 'skibish/ddns:{{ .Tag }}-armv7'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm/v7"
- image_templates:
- 'skibish/ddns:{{ .Tag }}-i386'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/386"
docker_manifests:
- name_template: skibish/ddns:{{ .Tag }}
image_templates:
- skibish/ddns:{{ .Tag }}-amd64
- skibish/ddns:{{ .Tag }}-arm64
- skibish/ddns:{{ .Tag }}-armv6
- skibish/ddns:{{ .Tag }}-armv7
- skibish/ddns:{{ .Tag }}-i386
- name_template: skibish/ddns:latest
image_templates:
- skibish/ddns:{{ .Tag }}-amd64
- skibish/ddns:{{ .Tag }}-arm64
- skibish/ddns:{{ .Tag }}-armv6
- skibish/ddns:{{ .Tag }}-armv7
- skibish/ddns:{{ .Tag }}-i386

0 comments on commit d94ba75

Please sign in to comment.