Skip to content

Commit c8a54ab

Browse files
committed
update to fix sed issue not replacing value
1 parent 748472e commit c8a54ab

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/kind-maven.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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: |
@@ -57,7 +56,7 @@ jobs:
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

0 commit comments

Comments
 (0)