File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 15
15
echo " permit-opa directory already exists. Skipping clone operation."
16
16
fi
17
17
18
+ # Check if datasync directory already exists
19
+ if [ ! -d " ../datasync" ]; then
20
+ # Clone the permit-opa repository into the parent directory if it doesn't exist
21
+ git clone
[email protected] :permitio/datasync.git ../datasync
22
+ else
23
+ echo " datasync directory already exists. Skipping clone operation."
24
+ fi
25
+
18
26
# Conditionally execute the custom OPA tarball creation section based on the value of PDP_VANILLA
19
27
if [ " $PDP_VANILLA " != " true" ]; then
20
28
# Custom OPA tarball creation section
@@ -24,6 +32,13 @@ if [ "$PDP_VANILLA" != "true" ]; then
24
32
cd " ../permit-opa"
25
33
find * -name ' *go*' -print0 | xargs -0 tar -czf " $build_root " /custom/custom_opa.tar.gz --exclude ' .*'
26
34
cd " $build_root "
35
+ # Datasync tarball creation section
36
+ rm -rf datasync
37
+ mkdir datasync
38
+ build_root=" $PWD "
39
+ cd " ../datasync"
40
+ find * -name ' *go*' -print0 | xargs -0 tar -czf " $build_root " /datasync/datasync.tar.gz --exclude ' .*'
41
+ cd " $build_root "
27
42
else
28
43
echo " Skipping custom OPA tarball creation for pdp-vanilla environment."
29
44
fi
You can’t perform that action at this time.
0 commit comments