File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 4949 run : echo "ipAddress = $(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}')" >> $GITHUB_ENV
5050 - name : set envIpPort
5151 run : echo "ipPort = $(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
52+ - name : debug ip and port
53+ run : |
54+ echo "IP Address ${{ env.ipAddress }} Port ${{ env.ipPort }}"
55+ echo "IP Address $env.ipAddres Port $env.ipPort"
5256 - name : fix connection string
53- run : awk -i inplace '{gsub(/127.0.0.1/,"${{ env.ipAddress}}:${{ env.ipPort }} ?network=external"); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
57+ run : awk -i inplace '{gsub(/127.0.0.1/,"$env.ipAddress:$ env.ipPort?network=external"); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
5458 - name : validate file fix
5559 run : cat src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
5660 - name : Build with Maven
You can’t perform that action at this time.
0 commit comments