Skip to content

Commit

Permalink
build(packaging): provide zipped Flow binaries at release
Browse files Browse the repository at this point in the history
Signed-off-by: hainenber <[email protected]>
  • Loading branch information
hainenber committed Nov 28, 2023
1 parent cac7e19 commit 55cbf56
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ Main (unreleased)

- Fix issue in `prometheus.operator.*` where targets would be dropped if two crds share a common prefix in their names. (@Paul424, @captncraig)

### Other changes

- Provide standalone Flow binaries on new version release. (@hainenber)

v0.38.0 (2023-11-21)
--------------------

Expand Down
18 changes: 17 additions & 1 deletion tools/make/packaging.mk
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,18 @@ dist/grafana-agentctl-freebsd-amd64:
# Flow-specific system packages. As such, they are built in a dist.temp
# directory instead of the normal dist directory.
#
# However, two standalone Flow binaries for amd64 and arm64 are provided
# for custom installation.
# Only targets needed for system packages are used here.
#

dist-agent-flow-binaries: dist.temp/grafana-agent-flow-linux-amd64 \
dist.temp/grafana-agent-flow-linux-arm64 \
dist.temp/grafana-agent-flow-linux-ppc64le \
dist.temp/grafana-agent-flow-linux-s390x \
dist.temp/grafana-agent-flow-windows-amd64.exe
dist.temp/grafana-agent-flow-windows-amd64.exe \
dist/grafana-agent-flow-linux-amd64 \
dist/grafana-agent-flow-linux-arm64 \

dist.temp/grafana-agent-flow-linux-amd64: GO_TAGS += netgo builtinassets promtail_journal_enabled
dist.temp/grafana-agent-flow-linux-amd64: GOOS := linux
Expand Down Expand Up @@ -205,6 +209,18 @@ dist.temp/grafana-agent-flow-windows-amd64.exe: GOARCH := amd64
dist.temp/grafana-agent-flow-windows-amd64.exe: generate-ui
$(PACKAGING_VARS) FLOW_BINARY=$@ "$(MAKE)" -f $(PARENT_MAKEFILE) agent-flow

dist/grafana-agent-flow-linux-amd64: GO_TAGS += netgo builtinassets promtail_journal_enabled
dist/grafana-agent-flow-linux-amd64: GOOS := linux
dist/grafana-agent-flow-linux-amd64: GOARCH := amd64
dist/grafana-agent-flow-linux-amd64: generate-ui
$(PACKAGING_VARS) FLOW_BINARY=$@ "$(MAKE)" -f $(PARENT_MAKEFILE) agent-flow

dist.temp/grafana-agent-flow-linux-arm64: GO_TAGS += netgo builtinassets promtail_journal_enabled
dist.temp/grafana-agent-flow-linux-arm64: GOOS := linux
dist.temp/grafana-agent-flow-linux-arm64: GOARCH := arm64
dist.temp/grafana-agent-flow-linux-arm64: generate-ui
$(PACKAGING_VARS) FLOW_BINARY=$@ "$(MAKE)" -f $(PARENT_MAKEFILE) agent-flow

#
# agent-service release binaries.
#
Expand Down

0 comments on commit 55cbf56

Please sign in to comment.