Skip to content

Commit

Permalink
packaging: remove unnecessary nested alloy folder (#82)
Browse files Browse the repository at this point in the history
There is only one release asset, so we don't need nested folders in
packaging/.
  • Loading branch information
rfratto authored Mar 26, 2024
1 parent 5699930 commit 69d88db
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions tools/make/packaging.mk
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,16 @@ define generate_alloy_fpm =
--url "https://github.com/grafana/alloy" \
--rpm-digest sha256 \
-t $(1) \
--after-install packaging/alloy/$(1)/control/postinst \
--before-remove packaging/alloy/$(1)/control/prerm \
--after-install packaging/$(1)/control/postinst \
--before-remove packaging/$(1)/control/prerm \
--config-files /etc/alloy.river \
--config-files $(ALLOY_ENVIRONMENT_FILE_$(1)) \
--rpm-rpmbuild-define "_build_id_links none" \
--package $(4) \
dist/alloy-linux-$(3)=/usr/bin/alloy \
packaging/alloy/alloy.river=/etc/alloy.river \
packaging/alloy/environment-file=$(ALLOY_ENVIRONMENT_FILE_$(1)) \
packaging/alloy/$(1)/alloy.service=/usr/lib/systemd/system/alloy.service
packaging/alloy.river=/etc/alloy.river \
packaging/environment-file=$(ALLOY_ENVIRONMENT_FILE_$(1)) \
packaging/$(1)/alloy.service=/usr/lib/systemd/system/alloy.service
endef

ALLOY_PACKAGE_VERSION := $(patsubst v%,%,$(VERSION))
Expand Down Expand Up @@ -191,5 +191,5 @@ ifeq ($(USE_CONTAINER),1)
else
# quotes around mkdir are mandatory. ref: https://github.com/grafana/agent/pull/5664#discussion_r1378796371
"mkdir" -p dist
makensis -V4 -DVERSION=$(VERSION) -DOUT="../../../dist/alloy-installer.exe" ./packaging/alloy/windows/install_script.nsis
makensis -V4 -DVERSION=$(VERSION) -DOUT="../../../dist/alloy-installer.exe" ./alloy/windows/install_script.nsis
endif
2 changes: 1 addition & 1 deletion tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ find dist/ -type f \
-exec zip -j -m "{}.zip" "{}" \;

# Sign the RPM packages. DEB packages aren't signed.
./packaging/grafana-agent/rpm/gpg-sign.sh
./packaging/rpm/gpg-sign.sh

# Get the SHA256SUMS before continuing.
pushd dist && sha256sum -- * > SHA256SUMS && popd || exit
Expand Down

0 comments on commit 69d88db

Please sign in to comment.