Skip to content

Commit

Permalink
Replace envsubst with sed
Browse files Browse the repository at this point in the history
  • Loading branch information
MormonJesus69420 committed May 24, 2024
1 parent 4d293a1 commit 2ae106d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ jobs:

- name: Test the Project
run: |
echo ${{ env.HTTP_PROXY_HOST }}
echo ${{ env.HTTP_PROXY_PORT }}
echo ${{ env.HTTPS_PROXY_HOST }}
echo ${{ env.HTTPS_PROXY_PORT }}
envsubst < .m2/settings.xml
sed -i "s/HTTP_PROXY_HOST/${{ env.HTTP_PROXY_HOST }}/g" .m2/settings.xml
sed -i "s/HTTP_PROXY_PORT/${{ env.HTTP_PROXY_PORT }}/g" .m2/settings.xml
sed -i "s/HTTPS_PROXY_HOST/${{ env.HTTPS_PROXY_HOST }}/g" .m2/settings.xml
sed -i "s/HTTPS_PROXY_PORT/${{ env.HTTPS_PROXY_PORT }}/g" .m2/settings.xml
mvn ${{ env.MAVEN_CONFIG }} verify --fail-at-end
- name: Publish Test Report
Expand Down
8 changes: 4 additions & 4 deletions .m2/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
<id>nb-proxy-http</id>
<active>true</active>
<protocol>http</protocol>
<host>${HTTP_PROXY_HOST}</host>
<port>${HTTP_PROXY_PORT}</port>
<host>HTTP_PROXY_HOST</host>
<port>HTTP_PROXY_PORT</port>
<nonProxyHosts>localhost|127.0.0.1|docker</nonProxyHosts>
</proxy>
<proxy>
<id>nb-proxy-https</id>
<active>true</active>
<protocol>https</protocol>
<host>${HTTPS_PROXY_HOST}</host>
<port>${HTTPS_PROXY_PORT}</port>
<host>HTTPS_PROXY_HOS}</host>
<port>HTTPS_PROXY_POR}</port>
<nonProxyHosts>localhost|127.0.0.1|docker</nonProxyHosts>
</proxy>
</proxies>
Expand Down

0 comments on commit 2ae106d

Please sign in to comment.