Skip to content

Commit

Permalink
PXBF-dev: Add step in deploy pipe to add lines to redirects in usagov…
Browse files Browse the repository at this point in the history
… submod 23
  • Loading branch information
Xavier Metichecchia authored and Xavier Metichecchia committed Oct 8, 2024
1 parent c2862f6 commit 6f55e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
git checkout prod
- name: Insert rewrite rules in alphabetical order
run: |
sed -i '/^ rewrite \^\/benefits-grants-loans/a\ rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent;' ./usagov-2021/.docker/src-src/etc/nginx/partials/internal_redirects.conf
sed -i '/^ rewrite \^\/benefits-grants-loans/a\ rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent;' ./usagov-2021/.docker/src-cms/etc/nginx/partials/internal_redirects.conf
sed -i '/^ rewrite \^\/espanol\/beneficios-familias-militares/a\ rewrite ^/espanol/benefit-finder/([^/]+)/[^/]+$ /espanol/benefit-finder/$1 permanent;' ./usagov-2021/.docker/src-cms/etc/nginx/partials/internal_redirects.conf
cat ./usagov-2021/.docker/src-cms/etc/nginx/partials/internal_redirects.conf
sed -i '/# include partials\/internal_redirects.conf;/s/^# //' ./usagov-2021/.docker/src-cms/etc/nginx/partials/cms.conf.tmpl
Expand Down

0 comments on commit 6f55e12

Please sign in to comment.