Skip to content

Commit 83a2117

Browse files
committed
fix sub string
1 parent 6c3923e commit 83a2117

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/kind-maven.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ jobs:
4646
sleep 180
4747
- name: set IPAddress
4848
run: |
49-
echo "ipAddress=$(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}')" >> $GITHUB_ENV
49+
echo "envIpAddress=$(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}')" >> $GITHUB_ENV
5050
- name: set envIpPort
5151
run: |
52-
echo "ipPort = $(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
52+
echo "envIpPort=$(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
5353
- name: combine to full connection string
5454
run: |
55-
echo $ipAddress
56-
echo $ipPort
57-
echo "connectionString = $ipAddress:$ipPort?network=external" >> $GITHUB_ENV
55+
echo $envIpAddress
56+
echo $envIpPort
57+
echo "connectionString = ${envIpAddress}:${envIpPort}?network=external" >> $GITHUB_ENV
5858
- name: fix connection string
5959
run: |
6060
awk -i inplace '{sub(/127.0.0.1/,$connectionString); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java

0 commit comments

Comments
 (0)