Skip to content

Commit 74ba08d

Browse files
committed
add new var to fix issue with sub
1 parent 444b1e2 commit 74ba08d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/kind-maven.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)