Skip to content

Commit

Permalink
fix(release): remove archive in release, use github release notes + p…
Browse files Browse the repository at this point in the history
…ublish multiarch docker images
  • Loading branch information
RobBrazier committed Dec 16, 2024
1 parent 578019a commit e314754
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,38 @@ builds:
- darwin

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- format: binary

dockers:
- image_templates:
- "ghcr.io/robbrazier/readflow:latest"
- "ghcr.io/robbrazier/readflow:{{ .Tag }}"
- "ghcr.io/robbrazier/readflow:v{{ .Major }}"
- "ghcr.io/robbrazier/readflow:{{ .Version }}-amd64"
use: buildx
build_flag_templates:
- --platform=linux/amd64
extra_files:
- packaging/entrypoint.sh
- image_templates:
- "ghcr.io/robbrazier/readflow:{{ .Version }}-arm64v8"
use: buildx
goarch: arm64
build_flag_templates:
- --platform=linux/arm64/v8
extra_files:
- packaging/entrypoint.sh

docker_manifests:
- name_template: "ghcr.io/robbrazier/readflow:{{.Version}}"
image_templates:
- "ghcr.io/robbrazier/readflow:{{ .Version }}-amd64"
- "ghcr.io/robbrazier/readflow:{{ .Version }}-arm64v8"
- name_template: "ghcr.io/robbrazier/readflow:v{{.Major}}"
image_templates:
- "ghcr.io/robbrazier/readflow:{{ .Version }}-amd64"
- "ghcr.io/robbrazier/readflow:{{ .Version }}-arm64v8"
- name_template: "ghcr.io/robbrazier/readflow:latest"
image_templates:
- "ghcr.io/robbrazier/readflow:{{ .Version }}-amd64"
- "ghcr.io/robbrazier/readflow:{{ .Version }}-arm64v8"

# nfpms:
# - package_name: readflow
Expand Down Expand Up @@ -65,7 +76,7 @@ dockers:
# postremove: packaging/scripts/postremove.sh

changelog:
sort: asc
use: github-native
filters:
exclude:
- "^docs(\\(.*\\))?:"
Expand Down

0 comments on commit e314754

Please sign in to comment.