Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --snapshot --clean --skip=publish
args: release --snapshot --clean --skip=publish,nfpm,chocolatey,homebrew
2 changes: 1 addition & 1 deletion .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --snapshot --clean --skip=publish
args: release --snapshot --clean --skip=publish,nfpm,chocolatey,homebrew
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
goreleaser:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -31,3 +31,5 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
95 changes: 92 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,24 @@ builds:
main: ./cmd/osctrld
binary: osctrld

- id: osctrld-windows
- id: osctrld-windows-amd64
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}}
main: ./cmd/osctrld
binary: osctrld

- id: osctrld-windows-arm64
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- arm64
ldflags:
- -s -w -X main.version={{.Version}}
Expand All @@ -52,12 +63,90 @@ archives:
formats: ["binary"]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

- id: windows-archives
- id: darwin-archives
ids:
- osctrld-windows
- osctrld-darwin
formats: ["tar.gz"]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

- id: windows-amd64-archive
ids:
- osctrld-windows-amd64
formats: ["zip"]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

- id: windows-arm64-archive
ids:
- osctrld-windows-arm64
formats: ["zip"]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

nfpms:
- id: linux-packages
ids:
- osctrld-linux
package_name: osctrld
vendor: jmpsec
homepage: https://github.com/jmpsec/osctrld
maintainer: Javier Marcos <javier@jmpsec.com>
description: Daemon for osctrl, the fast and efficient osquery management.
license: MIT
formats:
- apk
- deb
- rpm
bindir: /usr/bin
contents:
- src: service/linux/systemd.service
dst: /lib/systemd/system/osctrld.service
- src: service/osctrld.yaml
dst: /etc/osctrld/osctrld.yaml
type: config|noreplace

brews:
- name: osctrld
ids:
- darwin-archives
repository:
owner: jmpsec
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
directory: Formula
homepage: https://github.com/jmpsec/osctrld
description: Daemon for osctrl, the fast and efficient osquery management.
license: MIT
install: |
bin.install "osctrld"
test: |
system "#{bin}/osctrld", "--version"

chocolateys:
- name: osctrld
ids:
- windows-amd64-archive
package_source_url: https://github.com/jmpsec/osctrld
owners: jmpsec
title: osctrld
authors: jmpsec
project_url: https://github.com/jmpsec/osctrld
license_url: https://github.com/jmpsec/osctrld/blob/main/LICENSE
project_source_url: https://github.com/jmpsec/osctrld
docs_url: https://github.com/jmpsec/osctrld/blob/main/README.md
bug_tracker_url: https://github.com/jmpsec/osctrld/issues
tags: osctrl osquery security daemon
summary: Daemon for osctrl, the fast and efficient osquery management.
description: |
osctrld is the daemon component for osctrl. It keeps osquery clients aligned
with their osctrl environment by managing flags, enrollment secrets, server
certificates, extensions, and local osquery restarts.
release_notes: "https://github.com/jmpsec/osctrld/releases/tag/{{ .Tag }}"
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
source_repo: https://push.chocolatey.org/

checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256
Expand Down
Loading