SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: integrate goreleaser for user_scripts and restructuring (#6911)
Prashant Shahic30c882aae07
diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yamlnew file mode 100644index 0000000000..3e479ac261--- /dev/null+++ b/.github/workflows/goreleaser.yaml@@ -0,0 +1,35 @@+name: goreleaser++on:+ push:+ tags:+ - v*+ - histogram-quantile/v*++permissions:+ contents: write++jobs:+ goreleaser:+ runs-on: ubuntu-latest+ strategy:+ matrix:+ workdirs:+ - scripts/clickhouse/histogramquantile+ steps:+ - name: checkout+ uses: actions/checkout@v4+ with:+ fetch-depth: 0+ - name: set-up-go+ uses: actions/setup-go@v5+ - name: run-goreleaser+ uses: goreleaser/goreleaser-action@v6+ with:+ distribution: goreleaser-pro+ version: '~> v2'+ args: release --clean+ workdir: ${{ matrix.workdirs }}+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}diff --git a/.gitignore b/.gitignoreindex 2bd9238255..feb3e8f535 100644--- a/.gitignore+++ b/.gitignore@@ -70,3 +70,5 @@ vendor/# git-town.git-branches.toml+# goreleaser+dist/diff --git a/Makefile b/Makefileindex 8e460b3042..75f590899e 100644--- a/Makefile+++ b/Makefile@@ -17,6 +17,7 @@ QUERY_SERVICE_DIRECTORY ?= pkg/query-serviceEE_QUERY_SERVICE_DIRECTORY ?= ee/query-serviceSTANDALONE_DIRECTORY ?= deploy/docker/clickhouse-setupSWARM_DIRECTORY ?= deploy/docker-swarm/clickhouse-setup+CH_HISTOGRAM_QUANTILE_DIRECTORY ?= scripts/clickhouse/histogramquantileGOOS ?= $(shell go env GOOS)GOARCH ?= $(shell go env GOARCH)@@ -191,3 +192,15 @@ check-no-ee-references:test:go test ./pkg/...++goreleaser-snapshot:+ @if [[ ${GORELEASER_WORKDIR} ]]; then \+ cd ${GORELEASER_WORKDIR} && \+ goreleaser release --clean --snapshot; \+ cd -; \+ else \+ goreleaser release --clean --snapshot; \+ fi++goreleaser-snapshot-histogram-quantile:+ make GORELEASER_WORKDIR=$(CH_HISTOGRAM_QUANTILE_DIRECTORY) goreleaser-snapshotdiff --git a/deploy/docker/clickhouse-setup/user_scripts/.deprecated b/deploy/docker/clickhouse-setup/user_scripts/.deprecatednew file mode 100644index 0000000000..3781773c44--- /dev/null+++ b/deploy/docker/clickhouse-setup/user_scripts/.deprecated@@ -0,0 +1,2 @@+This directory is deprecated and will be removed in the future.+Please use the new directory for Clickhouse setup scripts: `scripts/clickhouse` instead.diff --git a/scripts/clickhouse/histogramquantile/.goreleaser.yaml b/scripts/clickhouse/histogramquantile/.goreleaser.yamlnew file mode 100644index 0000000000..006edfe1cb--- /dev/null+++ b/scripts/clickhouse/histogramquantile/.goreleaser.yaml@@ -0,0 +1,45 @@+# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json+# vim: set ts=2 sw=2 tw=0 fo=cnqoj+version: 2++project_name: histogram-quantile++monorepo:+ tag_prefix: histogram-quantile/++before:+ hooks:+ - go mod tidy+ - cp ../../../LICENSE .+ - cp ../../../README.md .++after:+ hooks:+ - rm LICENSE+ - rm README.md++builds:+ - env:+ - CGO_ENABLED=0+ goos:+ - linux+ - darwin+ goarch:+ - amd64+ - arm64++archives:+ - formats:+ - tar.gz+ name_template: >-+ {{ .ProjectName }}_{{- .Os }}_{{- .Arch }}+ files:+ - README.md+ - LICENSE++release:+ footer: >-++ ---++ Released by [GoReleaser](https://github.com/goreleaser/goreleaser).diff --git a/deploy/docker/clickhouse-setup/user_scripts/histogramQuantile.go b/scripts/clickhouse/histogramquantile/main.gosimilarity index 100%rename from deploy/docker/clickhouse-setup/user_scripts/histogramQuantile.gorename to scripts/clickhouse/histogramquantile/main.go