File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,10 @@ jobs:
4444 - name : wait for cluster to come up
4545 run : |
4646 sleep 180
47- - name : set IPAddress
47+ - name : set IPAddress and IpPort
4848 run : |
4949 echo "envIpAddress=$(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}')" >> $GITHUB_ENV
50- - name : set envIpPort
51- run : |
50+
5251 echo "envIpPort=$(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
5352 - name : combine to full connection string
5453 run : |
5756 echo "connectionString = ${envIpAddress}:${envIpPort}?network=external" >> $GITHUB_ENV
5857 - name : fix connection string
5958 run : |
60- sed -i 's/"127.0.0.1"/$connectionString/' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
59+ sed -i 's/"127.0.0.1"/${ connectionString} /' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
6160 - name : validate file fix
6261 run : cat src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
6362 - name : Build with Maven
You can’t perform that action at this time.
0 commit comments