File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ jobs:
5050 - name : set envIpPort
5151 run : |
5252 echo "ipPort = $(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
53- - name : debug ip and port
53+ - name : combine to full connection string
5454 run : |
55- echo "IP Address" $ipAddress "Port" $ipPort
5655 echo $ipAddress
5756 echo $ipPort
57+ echo "connectionString = "$ipAddress:$ipPort?network=external" >> $GITHUB_ENV
5858 - name : fix connection string
5959 run : |
60- awk -i inplace '{sub(/127.0.0.1/,$ipAddress":"$ipPort"?network=external" ); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
60+ awk -i inplace '{sub(/127.0.0.1/,$connectionString ); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
6161 - name : validate file fix
6262 run : cat src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
6363 - name : Build with Maven
You can’t perform that action at this time.
0 commit comments