Skip to content

Commit e5e2319

Browse files
committed
updated syntax
1 parent 6a67f61 commit e5e2319

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/kind-maven.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ jobs:
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

0 commit comments

Comments
 (0)