Skip to content

Commit 9827b78

Browse files
authored
Update kind-maven.yaml
update for environment varibles
1 parent 81acba4 commit 9827b78

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/kind-maven.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
jobs:
2020
kind:
2121
runs-on: ubuntu-latest
22+
env:
23+
connectionString: localhost:8091
2224
strategy:
2325
matrix:
2426
node-version: [14.x]
@@ -53,10 +55,7 @@ jobs:
5355
echo "connectionString = $(echo "${envIpAddress}:${envIpPort}?network=external" | sed -e 's/[]$.*[\^]/\\&/g' )" | xargs >> $GITHUB_ENV
5456
- name: fix connection string
5557
run: |
56-
sed -i'' -e "s|localhost|${{ env.connectionString }}|" src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
5758
sed -i'' -e "s|localhost|$connectionString|" src/main/resources/application.properties
58-
59-
cat src/main/java/org/couchbase/quickstart/configs/ConfigDb.java
6059
cat src/main/resources/application.properties
6160
- name: Build with Maven
6261
run: mvn -B package --file pom.xml
@@ -69,4 +68,4 @@ jobs:
6968
restore-keys: ${{ runner.os }}-m2
7069

7170
- name: Run tests with Maven
72-
run: mvn -B test --file pom.xml
71+
run: mvn -B test --file pom.xml

0 commit comments

Comments
 (0)