Skip to content

Commit 7063348

Browse files
committed
try bash syntax
1 parent 226c1b3 commit 7063348

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/kind-maven.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,17 @@ jobs:
4646
sleep 60
4747
4848
- name: set IPAddress
49-
run: echo "ipAddress = $(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}')" >> $GITHUB_ENV
49+
run: |
50+
echo "ipAddress = $(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}')" >> $GITHUB_ENV
5051
- name: set envIpPort
51-
run: echo "ipPort = $(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
52+
run: |
53+
echo "ipPort = $(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
5254
- name: debug ip and port
5355
run: |
54-
echo "IP Address ${{ ipAddress }} Port ${{ ipPort }}"
55-
echo "IP Address $ipAddres Port $ipPort"
56+
echo "IP Address ${ipAddress} Port ${ipPort}"
5657
- name: fix connection string
57-
run: awk -i inplace '{gsub(/127.0.0.1/,"${{ ipAddress }}:${{ ipPort }}?network=external"); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
58+
run: |
59+
awk -i inplace '{gsub(/127.0.0.1/,"${ipAddress}:${ipPort}?network=external"); print }' src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
5860
- name: validate file fix
5961
run: cat src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
6062
- name: Build with Maven

0 commit comments

Comments
 (0)