forked from alertlogic/paws-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create the artifact for each collector and upload to artifact storage
- Loading branch information
Rakhi Mundhada
authored and
Rakhi Mundhada
committed
Feb 2, 2024
1 parent
560517c
commit 10fd600
Showing
4 changed files
with
363 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
COLLECTOR_NAME=$1 | ||
|
||
cd collectors/"$COLLECTOR_NAME" || exit 1 | ||
npm install || exit 1 | ||
make package || exit 1 | ||
|
||
mkdir -p "${COLLECTOR_NAME}"-collector | ||
cp -r cfn al-"${COLLECTOR_NAME}"-collector.zip al-"${COLLECTOR_NAME}"-collector.json "${COLLECTOR_NAME}"-collector | ||
zip -r ../../"${COLLECTOR_NAME}"-collector.zip "${COLLECTOR_NAME}"-collector |
Oops, something went wrong.