File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1919jobs :
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 "http:// ${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
You can’t perform that action at this time.
0 commit comments