diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-11-16 11:39:38 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-11-16 13:10:33 +0000 |
commit | 365ae51ecd8cf39da421eb2e04182524e2cea3d3 (patch) | |
tree | ec810fd1455d6acca4898e8cbe3c9fd1712b4e99 /scripts/package-build/amazon-cloudwatch-agent | |
parent | b455954ecde603a76521e4b0f1f955cbd87ff599 (diff) | |
download | vyos-build-365ae51ecd8cf39da421eb2e04182524e2cea3d3.tar.gz vyos-build-365ae51ecd8cf39da421eb2e04182524e2cea3d3.zip |
T6879: Add build amazon-cloudwatch-agent and amazon-cloudwatch-agent
Diffstat (limited to 'scripts/package-build/amazon-cloudwatch-agent')
3 files changed, 22 insertions, 0 deletions
diff --git a/scripts/package-build/amazon-cloudwatch-agent/.gitignore b/scripts/package-build/amazon-cloudwatch-agent/.gitignore new file mode 100644 index 00000000..7f8e0127 --- /dev/null +++ b/scripts/package-build/amazon-cloudwatch-agent/.gitignore @@ -0,0 +1,7 @@ +amazon-cloudwatch-agent/ +*.buildinfo +*.build +*.changes +*.deb +*.dsc +*.tar.gz diff --git a/scripts/package-build/amazon-cloudwatch-agent/build.py b/scripts/package-build/amazon-cloudwatch-agent/build.py new file mode 120000 index 00000000..3c76af73 --- /dev/null +++ b/scripts/package-build/amazon-cloudwatch-agent/build.py @@ -0,0 +1 @@ +../build.py
\ No newline at end of file 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..833096d4 --- /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 prepackage 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 + +""" |