Skip to content

Commit

Permalink
fix: clean up GoReleaser config (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 authored Dec 7, 2021
1 parent 91962f1 commit f833f9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 46 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
soft
.ssh
.repos
dist
52 changes: 6 additions & 46 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ before:
- go mod download

builds:
- id: "soft-serve"
binary: "soft"
- binary: "soft"
ldflags: -s -w -X main.Version=v{{ .Version }} -X main.CommitSHA={{ .Commit }}
goos:
- linux
Expand All @@ -26,13 +25,10 @@ builds:
- "7"
ignore:
- goos: windows
goarch: arm64
goarm: "6"

archives:
- id: default
builds:
- soft-serve
format_overrides:
- format_overrides:
- goos: windows
format: zip
replacements:
Expand All @@ -42,10 +38,7 @@ archives:
amd64: x86_64

nfpms:
- builds:
- soft-serve

vendor: charmbracelet
- vendor: charmbracelet
homepage: "https://charm.sh/"
maintainer: "Christian Rocha <[email protected]>"
description: "A personal key value store"
Expand All @@ -57,8 +50,7 @@ nfpms:
bindir: /usr/bin

brews:
- goarm: "6"
tap:
- tap:
owner: charmbracelet
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
Expand Down Expand Up @@ -96,7 +88,6 @@ dockers:
- "ghcr.io/charmbracelet/soft-serve:latest-amd64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-amd64"
ids: [soft-serve]
goarch: amd64
build_flag_templates:
- --platform=linux/amd64
Expand All @@ -117,7 +108,6 @@ dockers:
- "ghcr.io/charmbracelet/soft-serve:latest-i386"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-i386"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-i386"
ids: [soft-serve]
goarch: "386"
build_flag_templates:
- --platform=linux/i386
Expand All @@ -138,7 +128,6 @@ dockers:
- "ghcr.io/charmbracelet/soft-serve:latest-arm64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-arm64"
ids: [soft-serve]
goarch: arm64
build_flag_templates:
- --platform=linux/arm64
Expand All @@ -152,36 +141,13 @@ dockers:
- --label=org.opencontainers.image.licenses=MIT
dockerfile: Dockerfile
use: buildx
- image_templates:
- "docker.io/charmcli/soft-serve:latest-armv6"
- "docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6"
- "docker.io/charmcli/soft-serve:v{{ .Version }}-armv6"
- "ghcr.io/charmbracelet/soft-serve:latest-armv6"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-armv6"
ids: [soft-serve]
goarch: arm
goarm: "6"
build_flag_templates:
- --platform=linux/arm/v6
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/charmbracelet/soft-serve
- --label=org.opencontainers.image.source=https://github.com/charmbracelet/soft-serve
- --label=org.opencontainers.image.version=v{{ .Version }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
dockerfile: Dockerfile
use: buildx
- image_templates:
- "docker.io/charmcli/soft-serve:latest-armv7"
- "docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7"
- "docker.io/charmcli/soft-serve:v{{ .Version }}-armv7"
- "ghcr.io/charmbracelet/soft-serve:latest-armv7"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-armv7"
ids: [soft-serve]
goarch: arm
goarm: "7"
build_flag_templates:
Expand All @@ -202,41 +168,35 @@ docker_manifests:
image_templates:
- docker.io/charmcli/soft-serve:latest-amd64
- docker.io/charmcli/soft-serve:latest-arm64
- docker.io/charmcli/soft-serve:latest-armv6
- docker.io/charmcli/soft-serve:latest-armv7
- docker.io/charmcli/soft-serve:latest-i386
- name_template: ghcr.io/charmbracelet/soft-serve:latest
image_templates:
- ghcr.io/charmbracelet/soft-serve:latest-amd64
- ghcr.io/charmbracelet/soft-serve:latest-arm64
- ghcr.io/charmbracelet/soft-serve:latest-armv6
- ghcr.io/charmbracelet/soft-serve:latest-armv7
- ghcr.io/charmbracelet/soft-serve:latest-i386
- name_template: docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}
image_templates:
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-i386
- name_template: ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}
image_templates:
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-i386
- name_template: docker.io/charmcli/soft-serve:v{{ .Version }}
image_templates:
- docker.io/charmcli/soft-serve:v{{ .Version }}-amd64
- docker.io/charmcli/soft-serve:v{{ .Version }}-arm64
- docker.io/charmcli/soft-serve:v{{ .Version }}-armv6
- docker.io/charmcli/soft-serve:v{{ .Version }}-armv7
- docker.io/charmcli/soft-serve:v{{ .Version }}-i386
- name_template: ghcr.io/charmbracelet/soft-serve:v{{ .Version }}
image_templates:
- ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-amd64
- ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-arm64
- ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-armv6
- ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-armv7
- ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-i386
- ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-i386

0 comments on commit f833f9b

Please sign in to comment.