Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6879: Add build amazon-cloudwatch-agent #839

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

"""
Loading