Skip to content

Commit

Permalink
chore(goreleaser): update configuration for ledger binary
Browse files Browse the repository at this point in the history
- Remove extra newline in goreleaser config file
- Correct archive build id from gateway to ledger
- Update nfpms id from packages to ledger
- Adjust publisher ids to ledger
- Enhance brew section with pull request settings and skip_upload flag
  • Loading branch information
flemzord committed Sep 25, 2024
1 parent 8ec79d2 commit 3cf78b9
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ includes:
- from_url:
url: https://raw.githubusercontent.com/formancehq/earthly/refs/heads/main/.goreleaser.default.yaml


builds:
- binary: ledger
id: ledger
Expand All @@ -33,12 +32,12 @@ release:
archives:
- id: "{{.ProjectName}}"
builds:
- gateway
- ledger
format: tar.gz
name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}"

nfpms:
- id: packages
- id: ledger
package_name: ledger
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
Expand All @@ -52,18 +51,26 @@ nfpms:
publishers:
- name: fury.io
ids:
- packages
- ledger
dir: "{{ dir .ArtifactPath }}"
cmd: curl --http1.1 -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/ledger/

brews:
- repository:
- name: ledger
alternative_names:
- ledger@{{ .Major }}
repository:
owner: formancehq
name: homebrew-tap
name: ledger
pull_request:
enabled: true
base:
owner: formancehq
name: homebrew-tap
branch: main
directory: Formula
homepage: https://formance.com
skip_upload: auto
skip_upload: 'false'
test: |
system "#{bin}/ledger version"
install: |
Expand Down

0 comments on commit 3cf78b9

Please sign in to comment.