T6879: Add build amazon-cloudwatch-agent and amazon-cloudwatch-agent

This commit is contained in:
Viacheslav Hletenko 2024-11-16 11:39:38 +00:00
parent b455954ecd
commit 365ae51ecd
7 changed files with 58 additions and 0 deletions

View File

@ -23,6 +23,10 @@ jobs:
with:
base: ${{ github.ref_name }}
filters: |
amazon-cloudwatch-agent:
- 'scripts/package-build/amazon-cloudwatch-agent/**'
amazon-ssm-agent:
- 'scripts/package-build/amazon-ssm-agent/**'
aws-gwlbtun:
- 'scripts/package-build/aws-gwlbtun/**'
ddclient:
@ -99,6 +103,14 @@ jobs:
}
# Trigger builds based on detected changes
if [ "${{ steps.changes.outputs.amazon-cloudwatch-agent }}" == "true" ]; then
trigger_build "amazon-cloudwatch-agent"
fi
if [ "${{ steps.changes.outputs.amazon-ssm-agent }}" == "true" ]; then
trigger_build "amazon-ssm-agent"
fi
if [ "${{ steps.changes.outputs.aws-gwlbtun }}" == "true" ]; then
trigger_build "aws-gwlbtun"
fi

View File

@ -0,0 +1,7 @@
amazon-cloudwatch-agent/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz

View File

@ -0,0 +1 @@
../build.py

View File

@ -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
"""

View File

@ -0,0 +1,7 @@
amazon-ssm-agent/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz

View File

@ -0,0 +1 @@
../build.py

View File

@ -0,0 +1,16 @@
[[packages]]
name = "amazon-ssm-agent"
commit_id = "3.3.1311.0"
scm_url = "https://github.com/aws/amazon-ssm-agent"
build_cmd = """
ARCH=$(dpkg --print-architecture)
TAG=$(git describe --tags --abbrev=0)
COMMIT=$(git rev-parse --short HEAD)
make build-linux
make package-deb
cp ./bin/debian_${ARCH}/*.deb ../amazon-ssm-agent_${TAG}_${COMMIT}_${ARCH}.deb
"""