-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from permitio/release/v0.7.0
Release/v0.7.0
- Loading branch information
Showing
18 changed files
with
1,468 additions
and
111 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
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 |
---|---|---|
|
@@ -15,6 +15,14 @@ else | |
echo "permit-opa directory already exists. Skipping clone operation." | ||
fi | ||
|
||
# Check if factdb directory already exists | ||
if [ ! -d "../factdb" ]; then | ||
# Clone the permit-opa repository into the parent directory if it doesn't exist | ||
git clone [email protected]:permitio/datasync.git ../factdb | ||
else | ||
echo "factdb directory already exists. Skipping clone operation." | ||
fi | ||
|
||
# Conditionally execute the custom OPA tarball creation section based on the value of PDP_VANILLA | ||
if [ "$PDP_VANILLA" != "true" ]; then | ||
# Custom OPA tarball creation section | ||
|
@@ -24,6 +32,13 @@ if [ "$PDP_VANILLA" != "true" ]; then | |
cd "../permit-opa" | ||
find * -name '*go*' -print0 | xargs -0 tar -czf "$build_root"/custom/custom_opa.tar.gz --exclude '.*' | ||
cd "$build_root" | ||
# factdb tarball creation section | ||
rm -rf factdb | ||
mkdir factdb | ||
build_root="$PWD" | ||
cd "../factdb" | ||
find * -name '*go*' -print0 | xargs -0 tar -czf "$build_root"/factdb/factdb.tar.gz --exclude '.*' | ||
cd "$build_root" | ||
else | ||
echo "Skipping custom OPA tarball creation for pdp-vanilla environment." | ||
fi |
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
Oops, something went wrong.