mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
T6879: Add build amazon-cloudwatch-agent and amazon-cloudwatch-agent
This commit is contained in:
parent
b455954ecd
commit
365ae51ecd
12
.github/workflows/trigger_rebuild_packages.yml
vendored
12
.github/workflows/trigger_rebuild_packages.yml
vendored
@ -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
|
||||
|
||||
7
scripts/package-build/amazon-cloudwatch-agent/.gitignore
vendored
Normal file
7
scripts/package-build/amazon-cloudwatch-agent/.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
amazon-cloudwatch-agent/
|
||||
*.buildinfo
|
||||
*.build
|
||||
*.changes
|
||||
*.deb
|
||||
*.dsc
|
||||
*.tar.gz
|
||||
1
scripts/package-build/amazon-cloudwatch-agent/build.py
Symbolic link
1
scripts/package-build/amazon-cloudwatch-agent/build.py
Symbolic link
@ -0,0 +1 @@
|
||||
../build.py
|
||||
14
scripts/package-build/amazon-cloudwatch-agent/package.toml
Normal file
14
scripts/package-build/amazon-cloudwatch-agent/package.toml
Normal 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
|
||||
|
||||
"""
|
||||
7
scripts/package-build/amazon-ssm-agent/.gitignore
vendored
Normal file
7
scripts/package-build/amazon-ssm-agent/.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
amazon-ssm-agent/
|
||||
*.buildinfo
|
||||
*.build
|
||||
*.changes
|
||||
*.deb
|
||||
*.dsc
|
||||
*.tar.gz
|
||||
1
scripts/package-build/amazon-ssm-agent/build.py
Symbolic link
1
scripts/package-build/amazon-ssm-agent/build.py
Symbolic link
@ -0,0 +1 @@
|
||||
../build.py
|
||||
16
scripts/package-build/amazon-ssm-agent/package.toml
Normal file
16
scripts/package-build/amazon-ssm-agent/package.toml
Normal 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
|
||||
|
||||
"""
|
||||
Loading…
x
Reference in New Issue
Block a user