@docupace/pipeline 1.0.3 → 1.0.4-1.haproxysync.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ PROJECT=$1
5
+
6
+ if [[ -z "$PROJECT" ]]; then
7
+ echo "Error: Project name is required."
8
+ echo "Usage: $0 <project-name>"
9
+ exit 1
10
+ fi
11
+
12
+ cd "$BITBUCKET_CLONE_DIR/${PROJECT}"
13
+
14
+ terraform version
15
+ terraform init -backend=false
16
+ terraform validate
17
+ terraform fmt -check -recursive --diff || exit 0