Skip to content

Commit

Permalink
feat(goreleaser): Add brew staging packages (#2107)
Browse files Browse the repository at this point in the history
Reviewed-by: Alexander Jung <[email protected]>
Approved-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung authored Jan 28, 2025
2 parents 60a260f + 24f072a commit 0d58e7d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .goreleaser-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ version: 2
#@ "linux": ["amd64"],
#@ },
#@ }

before:
hooks:
- make man

changelog:
sort: asc
use: github
Expand Down Expand Up @@ -76,6 +81,46 @@ nfpms:
contents:
- src: scripts/kraftld
dst: /usr/local/bin/kraftld
- src: ./docs/man/
dst: /usr/local/share/man/man1/

brews:
- name: kraftkit-staging
ids:
#@ for arch in binaries["kraft"]["linux"]:
- #@ "archive-kraft-linux-{}".format(arch)
#@ end
#@ for arch in binaries["kraft"]["darwin"]:
- #@ "archive-kraft-darwin-{}".format(arch)
#@ end
url_template: "https://github.com/unikraft/kraftkit/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: Unikraft Bot
email: [email protected]
commit_msg_template: "Bump {{ .ProjectName }} to version {{ .Tag }}"
homepage: "https://kraftkit.sh"
description: "Build and use highly customized and ultra-lightweight unikernels."
license: "BSD-3-Clause"
skip_upload: false
dependencies:
- name: gnu-sed
- name: make
- name: coreutils
- name: m4
- name: gawk
- name: grep
- name: wget
- name: qemu
- name: socat
- name: x86_64-elf-binutils
- name: x86_64-elf-gcc
- name: aarch64-elf-binutils
- name: aarch64-elf-gcc
repository:
owner: unikraft
name: homebrew-cli
extra_install: |-
man1.install Dir["man/*"]
builds:
#@ for bin, oses in binaries.items():
Expand Down Expand Up @@ -120,6 +165,10 @@ archives:
strip_parent: true
info:
mode: 0755
- src: "docs/man/*.1.gz"
dst: man
info:
mode: 0644
#@ end
#@ end

Expand Down

0 comments on commit 0d58e7d

Please sign in to comment.