Skip to content

Commit 5bb7b70

Browse files
authored
Update kind-maven.yaml
update variable to fix possible timing issue and syntax flaw
1 parent 4eb8565 commit 5bb7b70

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/kind-maven.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ on:
1919
jobs:
2020
kind:
2121
runs-on: ubuntu-latest
22-
env:
23-
connectionString: localhost:8091
2422
strategy:
2523
matrix:
2624
node-version: [14.x]
@@ -52,10 +50,11 @@ jobs:
5250
echo "envIpPort=$(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
5351
- name: combine to full connection string
5452
run: |
55-
echo "connectionString = $(echo "${envIpAddress}:${envIpPort}?network=external" | sed -e 's/[]$.*[\^]/\\&/g' )" | xargs >> $GITHUB_ENV
53+
echo "connectionString=$(echo "${envIpAddress}:${envIpPort}?network=external" | sed -e 's/[]$.*[\^]/\\&/g' )" | xargs >> $GITHUB_ENV
5654
- name: fix connection string
57-
run: |
58-
sed -i'' -e "s|localhost|$connectionString|" src/main/resources/application.properties
55+
run: |
56+
echo "${{ env.connectionString }}"
57+
sed -i'' -e "s|localhost|${{ env.connectionString }}|" src/main/resources/application.properties
5958
cat src/main/resources/application.properties
6059
- name: Build with Maven
6160
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)