Skip to content

Commit

Permalink
deploy scripts clean-up unused geonetwork routing
Browse files Browse the repository at this point in the history
deploy scripts clean-up unused geonetwork routing
  • Loading branch information
PeterWarren committed Jun 16, 2023
1 parent 8c22c77 commit c283b64
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/azure-static-web-apps-polite-dune-0c657411e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ jobs:
name: "context.json"
json: '{"portalBaseUrl":"${{ vars.AZURE_PORTAL_API_URL_DEV }}","hostUrl":"${{ vars.AZURE_PORTAL_URL_DEV }}","authBaseUrl":"${{ vars.AZURE_PORTAL_URL_DEV }}/api/"}'
dir: 'src/contexts/'
- name: Update proxy.json file
uses: jossef/[email protected]
with:
file: proxy.conf.json
field: target
value: "${{ vars.AZURE_PORTAL_URL_DEV }}/api/"
- name: print proxy.conf.json
run: cat proxy.conf.json
- name: Update staticwebapp.config.json
run: echo "`jq '((.routes[] | select(.route == "/geonetwork/*") | .redirect) |= "${{ vars.GEONETWORK_URL_DEV }}")' staticwebapp.config.json`" > staticwebapp.config.json
- name: print staticwebapp.config.json
run: cat staticwebapp.config.json
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ jobs:
name: "context.json"
json: '{"portalBaseUrl":"${{ vars.AZURE_PORTAL_API_URL_PROD }}","hostUrl":"${{ vars.AZURE_PORTAL_URL_PROD }}","authBaseUrl":"${{ vars.AZURE_PORTAL_URL_PROD }}/api/"}'
dir: 'src/contexts/'
- name: Update proxy.json file
uses: jossef/[email protected]
with:
file: proxy.conf.json
field: target
value: "${{ vars.AZURE_PORTAL_URL_PROD }}/api/"
- name: print proxy.conf.json
run: cat proxy.conf.json
- name: Update staticwebapp.config.json
run: echo "`jq '((.routes[] | select(.route == "/geonetwork/*") | .redirect) |= "${{ vars.GEONETWORK_URL_PROD }}")' staticwebapp.config.json`" > staticwebapp.config.json
- name: print staticwebapp.config.json
run: cat staticwebapp.config.json
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand Down
4 changes: 0 additions & 4 deletions staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"routes": [
{
"route": "/geonetwork/*",
"redirect": "https://augeonetwork-dev.geoanalytics.group/geonetwork/"
},
{
"route": "/login/*",
"methods": ["GET","HEAD","POST","OPTIONS"],
Expand Down

0 comments on commit c283b64

Please sign in to comment.