summaryrefslogtreecommitdiff
path: root/scripts/package-build/amazon-cloudwatch-agent/package.toml
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/package-build/amazon-cloudwatch-agent/package.toml')
-rw-r--r--scripts/package-build/amazon-cloudwatch-agent/package.toml14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/package-build/amazon-cloudwatch-agent/package.toml b/scripts/package-build/amazon-cloudwatch-agent/package.toml
new file mode 100644
index 00000000..120a17f9
--- /dev/null
+++ b/scripts/package-build/amazon-cloudwatch-agent/package.toml
@@ -0,0 +1,14 @@
+[[packages]]
+name = "amazon-cloudwatch-agent"
+commit_id = "v1.300050.0"
+scm_url = "https://github.com/aws/amazon-cloudwatch-agent"
+
+build_cmd = """
+
+make clean test check_secrets amazon-cloudwatch-agent-linux package-deb
+ARCH=$(dpkg --print-architecture)
+TAG=$(git describe --tags --abbrev=0)
+COMMIT=$(git rev-parse --short HEAD)
+cp ./build/bin/linux/${ARCH}/*.deb ../amazon-cloudwatch-agent_${TAG}_${COMMIT}_${ARCH}.deb
+
+"""