Skip to content

Commit

Permalink
chore: Update goreleaser configuration and add tomba service files
Browse files Browse the repository at this point in the history
  • Loading branch information
benemohamed committed Aug 7, 2024
1 parent 4f47e68 commit f41eebc
Showing 1 changed file with 45 additions and 43 deletions.
88 changes: 45 additions & 43 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2

env:
- GO111MODULE=on

Expand All @@ -9,6 +10,8 @@ before:
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
- ./bin/completion
- ./bin/manpages
builds:
- env:
- CGO_ENABLED=0
Expand All @@ -30,51 +33,11 @@ archives:
format_overrides:
- goos: windows
format: zip
dockers:
- image_templates:
["ghcr.io/tomba-io/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/tomba-io/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/tomba-io/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
- image_templates:
["ghcr.io/tomba-io/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
goarch: arm64
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/tomba-io/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/tomba-io/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
docker_manifests:
- name_template: ghcr.io/tomba-io/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/tomba-io/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/tomba-io/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/tomba-io/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/tomba-io/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/tomba-io/{{ .ProjectName }}:{{ .Version }}-arm64v8

brews:
- repository:
owner: tomba-io
name: homebrew-tap
folder: Formula
goarm: "7"
homepage: https://tomba.io
description: CLI utility to search or verify lists of email addresses in minutes.
Expand All @@ -87,12 +50,16 @@ brews:
- name: git
install: |-
bin.install "tomba"
extra_install: |-
bash_completion.install "./res/package/completion/tomba.bash" => "tomba"
zsh_completion.install "./res/package/completion/tomba.zsh" => "_tomba"
fish_completion.install "./res/package/completion/tomba.fish"
man1.install "./res/package/manpages/tomba.1.gz"
scoops:
- repository:
owner: tomba-io
name: scoop-bucket
folder: bucket
homepage: https://tomba.io
description: CLI utility to search or verify lists of email addresses in seconds.
license: Apache-2.0
Expand All @@ -116,8 +83,43 @@ nfpms:
- archlinux
dependencies:
- git
- systemd
recommends:
- golang
bindir: /usr/bin
contents:
- src: ./res/package/system/tomba.service
dst: /lib/systemd/system/tomba.service
- src: ./res/package/completion/tomba.bash
dst: /usr/share/bash-completion/completions/tomba
file_info:
mode: 0644
- src: ./res/package/completion/tomba.fish
dst: /usr/share/fish/vendor_completions.d/tomba.fish
file_info:
mode: 0644
- src: ./res/package/completion/tomba.zsh
dst: /usr/share/zsh/vendor-completions/_tomba
file_info:
mode: 0644
- src: ./res/package/manpages/tomba.1.gz
dst: /usr/share/man/man1/tomba.1.gz
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/tomba/copyright
file_info:
mode: 0644
scripts:
postinstall: ./res/package/scripts/postinstall.sh
rpm:
signature:
key_file: /tmp/signing-key.gpg
deb:
signature:
key_file: /tmp/signing-key.gpg
type: origin

changelog:
sort: asc
filters:
Expand Down

0 comments on commit f41eebc

Please sign in to comment.