Skip to content

Commit

Permalink
fix: Fix release tagging of bundle artifact (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg authored Oct 19, 2022
1 parent ff25ebc commit a38920e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ rm bundle.tar.gz || true
RELEASE_VERSION=${GITHUB_REF/refs\/tags\/v/}
MINOR_VERSION=$(echo ${RELEASE_VERSION} | cut -d. -f1,2)
MAJOR_VERSION=$(echo ${RELEASE_VERSION} | cut -d. -f1)
if [ -n "$GITHUB_ENV" ]; then
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
echo "MINOR_VERSION=$MINOR_VERSION" >> $GITHUB_ENV
echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
fi
mkdir -p bundle/policies
rsync -avr --exclude=README.md --exclude="*_test.rego" --exclude="*.go" --exclude=test --exclude=advanced internal/rules/policies/ bundle/policies/
cp internal/rules/policies/.manifest bundle/
Expand Down

0 comments on commit a38920e

Please sign in to comment.