Skip to content

Commit 226c1b3

Browse files
committed
syntax fix 2 to try and get variables to print
1 parent e5e2319 commit 226c1b3

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
@@ -51,10 +51,10 @@ jobs:
5151
run: echo "ipPort = $(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
5252
- name: debug ip and port
5353
run: |
54-
echo "IP Address ${{ env.ipAddress }} Port ${{ env.ipPort }}"
55-
echo "IP Address $env.ipAddres Port $env.ipPort"
54+
echo "IP Address ${{ ipAddress }} Port ${{ ipPort }}"
55+
echo "IP Address $ipAddres Port $ipPort"
5656
- name: fix connection string
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
57+
run: awk -i inplace '{gsub(/127.0.0.1/,"${{ ipAddress }}:${{ ipPort }}?network=external"); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
5858
- name: validate file fix
5959
run: cat src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
6060
- name: Build with Maven

0 commit comments

Comments
 (0)