Skip to content

Commit

Permalink
checks: don't skip advanced checks
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored and simar7 committed Apr 3, 2024
1 parent 7ac6b5e commit 792e6d4
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions scripts/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ if [ -n "$GITHUB_ENV" ]; then
echo "MINOR_VERSION=$MINOR_VERSION" >> $GITHUB_ENV
echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
fi
mkdir -p bundle/policies/{kubernetes,cloud,docker}/policies
rsync -avr --exclude=README.md --exclude="*_test.rego" --exclude="*.go" --exclude=compliance --exclude=test --exclude=advanced checks/cloud/ bundle/policies/cloud/policies
rsync -avr --exclude=README.md --exclude="*_test.rego" --exclude="*.go" --exclude=compliance --exclude=test --exclude=advanced checks/kubernetes/ bundle/policies/kubernetes/policies
rsync -avr --exclude=README.md --exclude="*_test.rego" --exclude="*.go" --exclude=compliance --exclude=test --exclude=advanced checks/docker/ bundle/policies/docker/policies
mkdir -p bundle/policies/{kubernetes,docker}/lib
rsync -avr --exclude="*_test.rego" --exclude="*.go" lib/kubernetes/* bundle/policies/kubernetes/lib
rsync -avr --exclude="*_test.rego" --exclude="*.go" lib/docker/* bundle/policies/docker/lib

for dir in kubernetes cloud docker; do
mkdir -p bundle/policies/$dir/policies
rsync -avr --exclude=README.md --exclude="*_test.rego" --exclude="*.go" --exclude=compliance --exclude=test checks/$dir/ bundle/policies/$dir/policies
done


for dir in kubernetes docker; do
mkdir -p bundle/policies/$dir/lib
rsync -avr --exclude="*_test.rego" --exclude="*.go" lib/$dir/* bundle/policies/$dir/lib
done

cp checks/.manifest bundle/
rm bundle/policies/.manifest
sed -i -e "s/\[GITHUB_SHA\]/${RELEASE_VERSION}/" bundle/.manifest
Expand Down

0 comments on commit 792e6d4

Please sign in to comment.