Skip to content

Commit

Permalink
chore(goreleaser): update docker image build step
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfonseca committed May 13, 2024
1 parent 41d0b26 commit 8b7aa3a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,47 @@ builds:
targets:
- linux_amd64_v1
- darwin_amd64_v1
dockers:
- use: buildx
goos: linux
goarch: amd64
image_templates:
- "luizfonseca/{{ .ProjectName }}:{{ .Version }}-amd64"
- "luizfonseca/{{ .ProjectName }}:latest-amd64"
build_flag_templates:
- "--platform=linux/amd64"
- "--pull"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"

# - use: buildx
# goos: linux
# goarch: arm64
# image_templates:
# - "luizfonseca/{{ .ProjectName }}:{{ .Version }}-arm64"
# - "luizfonseca/{{ .ProjectName }}:latest-arm64"
# build_flag_templates:
# - "--platform=linux/arm64"
# - "--pull"
# - "--label=org.opencontainers.image.created={{ .Date }}"
# - "--label=org.opencontainers.image.title={{ .ProjectName }}"
# - "--label=org.opencontainers.image.revision={{ .FullCommit }}"
# - "--label=org.opencontainers.image.version={{ .Version }}"


docker_manifests:
- name_template: "luizfonseca/{{ .ProjectName }}:{{ .Version }}"
image_templates:
- "luizfonseca/{{ .ProjectName }}:{{ .Version }}-amd64"
# - "luizfonseca/{{ .ProjectName }}:{{ .Version }}-arm64"
# - "luizfonseca/{{ .ProjectName }}:{{ .Version }}-arm"
- name_template: "luizfonseca/{{ .ProjectName }}:latest"
image_templates:
- "luizfonseca/{{ .ProjectName }}:latest-amd64"
# - "luizfonseca/{{ .ProjectName }}:latest-arm64"
# - "luizfonseca/{{ .ProjectName }}:latest-arm"
archives:
- id: tar.gz
format: tar.gz
Expand Down

0 comments on commit 8b7aa3a

Please sign in to comment.