Skip to content

Commit

Permalink
Enhancement: support linux/arm64 image release (#114)
Browse files Browse the repository at this point in the history
support docker manifests
  • Loading branch information
Eikykun committed Oct 30, 2023
1 parent fc2517e commit 8a16657
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ release:
dockers:
- image_templates:
- 'kusionstack/{{ .ProjectName }}:{{ .Tag }}'
- 'kusionstack/{{ .ProjectName }}:latest'
- 'kusionstack/{{ .ProjectName }}:{{ .Tag }}-amd64'
dockerfile: releaser.Dockerfile
goos: linux
goarch: amd64
Expand All @@ -118,4 +117,28 @@ dockers:
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- "--platform=linux/amd64"
- image_templates:
- 'kusionstack/{{ .ProjectName }}:{{ .Tag }}-arm64'
dockerfile: releaser.Dockerfile
goos: linux
goarch: arm64
use: docker
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"

docker_manifests:
- name_template: 'kusionstack/{{ .ProjectName }}:{{ .Tag }}'
image_templates:
- 'kusionstack/{{ .ProjectName }}:{{ .Tag }}-amd64'
- 'kusionstack/{{ .ProjectName }}:{{ .Tag }}-arm64'
- name_template: 'kusionstack/{{ .ProjectName }}:latest'
image_templates:
- 'kusionstack/{{ .ProjectName }}:{{ .Tag }}-amd64'
- 'kusionstack/{{ .ProjectName }}:{{ .Tag }}-arm64'

0 comments on commit 8a16657

Please sign in to comment.