Skip to content

Commit

Permalink
T6879: Add build amazon-cloudwatch-agent and amazon-cloudwatch-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
sever-sever committed Nov 16, 2024
1 parent b455954 commit 365ae51
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/trigger_rebuild_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions scripts/package-build/amazon-cloudwatch-agent/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
amazon-cloudwatch-agent/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
1 change: 1 addition & 0 deletions scripts/package-build/amazon-cloudwatch-agent/build.py
14 changes: 14 additions & 0 deletions scripts/package-build/amazon-cloudwatch-agent/package.toml
Original file line number Diff line number Diff line change
@@ -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
"""
7 changes: 7 additions & 0 deletions scripts/package-build/amazon-ssm-agent/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
amazon-ssm-agent/
*.buildinfo
*.build
*.changes
*.deb
*.dsc
*.tar.gz
1 change: 1 addition & 0 deletions scripts/package-build/amazon-ssm-agent/build.py
16 changes: 16 additions & 0 deletions scripts/package-build/amazon-ssm-agent/package.toml
Original file line number Diff line number Diff line change
@@ -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
"""

0 comments on commit 365ae51

Please sign in to comment.